diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 13:27:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 13:27:37 +0000 |
commit | d705a4d70e9650322bc695196b89948a2239402e (patch) | |
tree | 223b3d1f6f92a22b25105b2d6a67388381c8c156 /mdkapplet-upgrade-helper | |
parent | 697f646b182b3e059dacffd7b376fc4d1b2318fd (diff) | |
download | mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar.gz mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar.bz2 mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar.xz mgaonline-d705a4d70e9650322bc695196b89948a2239402e.zip |
(upgrade_distro_congratulations) when updates succeeded, offer to reboot
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-x | mdkapplet-upgrade-helper | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper index bb8d2d6f..2d58ac4e 100755 --- a/mdkapplet-upgrade-helper +++ b/mdkapplet-upgrade-helper @@ -127,11 +127,12 @@ sub upgrade_distro_congratulations() { line_wrap => 1, # workaround infamous 6 years old gnome bug #101968: width => $width - 50), - create_okcancel($w, N("Ok")), + create_okcancel($w, N("Reboot"), N("Cancel")), ]), ); $w->{ok}->grab_focus; - $w->main; + my $answer = $w->main; + any::reboot() if $answer && !$::testing; } sub upgrade() { |