From 3196208daed2949bde6fc175d4c54eeb3f9f2075 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 13 May 2008 16:18:27 +0000 Subject: reuse any::ask_for_X_restart() --- drakmenustyle | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'drakmenustyle') diff --git a/drakmenustyle b/drakmenustyle index d950bad..f1646bc 100755 --- a/drakmenustyle +++ b/drakmenustyle @@ -65,12 +65,6 @@ if ($value eq 'use_system_settings') { setVarsInSh($cfg_file, { MDV_MENU_STYLE => $value }); } -my $msg = N("The change is done, but to be effective you must logout"); if ($old_value ne $value) { - if (my $wm = $> && any::running_window_manager()) { - $in->ask_yesorno('', $msg, 1) - and any::ask_window_manager_to_logout($wm); - } else { - $in->ask_warn('', $msg); - } + any::ask_for_X_restart($in); } -- cgit v1.2.1