summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-22 23:06:19 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-22 23:06:19 +0000
commit4b763ea3c4880d9b089879b67df716ec423f96a7 (patch)
tree9f1d47d2ef3cbef390ffe1794988c54a2d607272
parent536a21a9745e4002e41b8f1d0efb1eb7416d81dd (diff)
downloadmgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar
mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar.gz
mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar.bz2
mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.tar.xz
mgaonline-4b763ea3c4880d9b089879b67df716ec423f96a7.zip
- set_label
-rwxr-xr-xmdkapplet8
1 files changed, 5 insertions, 3 deletions
diff --git a/mdkapplet b/mdkapplet
index 81a03fc6..a532a370 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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;