summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/localedrake
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/localedrake')
-rw-r--r--perl-install/standalone/localedrake12
1 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/standalone/localedrake b/perl-install/standalone/localedrake
index 2e26aa414..4f3ae4a32 100644
--- a/perl-install/standalone/localedrake
+++ b/perl-install/standalone/localedrake
@@ -16,13 +16,13 @@ $langs = '' if $>;
if ($lang = any::selectLanguage($in, $lang, $langs)) {
lang::write('', $lang, $file, $>);
lang::write_langs('', $langs) if $langs;
+ if ($>) {
+ if (my $wm = any::running_window_manager()) {
+ $in->ask_warn('', _("Please relog into %s to activate the changes", ucfirst (lc $wm)), 1);
+ any::ask_window_manager_to_logout($wm);
+ }
+ }
}
-if ($>) {
- if (my $wm = any::running_window_manager()) {
- $in->ask_warn('', _("Please relog into %s to activate the changes", ucfirst (lc $wm)), 1);
- any::ask_window_manager_to_logout($wm);
- }
-}
$in->exit(0);