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