aboutsummaryrefslogtreecommitdiffstats
path: root/apanel.pl
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-01-16 16:02:49 +0100
committerAngelo Naselli <anaselli@linux.it>2014-01-16 16:02:49 +0100
commitfed16eef71eacf5e06b7efb633e6cbf1e55f38f0 (patch)
tree04717956a7eca187aef30c4748c56338c9735ff9 /apanel.pl
parent1f0a53f65d026d328f34714dd2d7b0ba254e1dad (diff)
downloadmanatools-fed16eef71eacf5e06b7efb633e6cbf1e55f38f0.tar
manatools-fed16eef71eacf5e06b7efb633e6cbf1e55f38f0.tar.gz
manatools-fed16eef71eacf5e06b7efb633e6cbf1e55f38f0.tar.bz2
manatools-fed16eef71eacf5e06b7efb633e6cbf1e55f38f0.tar.xz
manatools-fed16eef71eacf5e06b7efb633e6cbf1e55f38f0.zip
Added availability to instanziate once intead o many times
Fixed return Category (now is the one we left)
Diffstat (limited to 'apanel.pl')
-rwxr-xr-xapanel.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/apanel.pl b/apanel.pl
index a01e535f..f75c2fab 100755
--- a/apanel.pl
+++ b/apanel.pl
@@ -37,20 +37,19 @@ my $settings = getSettings();
ask_for_authentication($settings->{priv_method}) if(require_root_capability());
-while (1) {
my $mainWin = new MainDisplay();
+while (1) {
my $launch = $mainWin->start();
if ($launch) {
$mainWin->destroy();
$launch->start();
- undef($mainWin);
}
else {
$mainWin->destroy();
- undef($mainWin);
last;
}
+ $mainWin->setupGui();
}