diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-22 23:06:19 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-22 23:06:19 +0000 |
commit | 4b763ea3c4880d9b089879b67df716ec423f96a7 (patch) | |
tree | 9f1d47d2ef3cbef390ffe1794988c54a2d607272 /mdkapplet | |
parent | 536a21a9745e4002e41b8f1d0efb1eb7416d81dd (diff) | |
download | mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar.gz mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar.bz2 mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar.xz mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.zip |
- set_label
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -165,7 +165,7 @@ sub showMainWindow() { } sub setLabel { my $label = shift; - defined $update_label and $update_label->set_label($label); + $update_label->set_text($label) if defined $update_label; } sub configNetwork { $mLog .= N("Launching drakconnect\n"); system "/usr/sbin/drakconnect &" } sub launchUpdate { $mLog .= N("Launching MandrakeUpdate\n"); system "/usr/sbin/MandrakeUpdate &" } @@ -253,13 +253,15 @@ sub checkUpdates { $mLog .= N("Checking Network: seems disabled\n"); go2State('disconnected') } elsif (!-e $conffile) { - $mLog .= N("Checking config file: Not present"); + $mLog .= N("Checking config file: Not present\n"); go2State('noconfig') } else { setLabel(N("Checking for Updates...")); silentCheck(); } - setLabel($isAvailable ? N("Available") : N("Not Available")); + if ($update_label && $update_label->get_text eq N("Checking for Updates...")) { + setLabel($isAvailable ? N("Available") : N("Not Available")); + } } sub go2State { my $state = shift; |