use strict;
+my $instance;
+
sub new {
$main::lxdebug->enter_sub();
my ($type, $menufile) = @_;
+ if ($instance) {
+ $::lxdebug->leave_sub;
+ return $instance;
+ }
+
my $self = {};
my $inifile = Inifile->new($menufile);
$main::lxdebug->leave_sub();
- return $self;
+ return $instance = $self;
}
sub menuitem_js {