From fed16eef71eacf5e06b7efb633e6cbf1e55f38f0 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Thu, 16 Jan 2014 16:02:49 +0100 Subject: Added availability to instanziate once intead o many times Fixed return Category (now is the one we left) --- Module.pm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Module.pm') diff --git a/Module.pm b/Module.pm index a8803fcb..48eb5bdc 100644 --- a/Module.pm +++ b/Module.pm @@ -108,9 +108,11 @@ sub removeButton { sub start { my $self = shift; - my $err = yui::YUI::app()->runInTerminal( $self->{launch} . " --ncurses"); - if ($err == -1) { - system($self->{launch}); + if ($self->{launch}) { + my $err = yui::YUI::app()->runInTerminal( $self->{launch} . " --ncurses"); + if ($err == -1) { + system($self->{launch}); + } } } -- cgit v1.2.1