diff options
-rw-r--r-- | lib/ManaTools/Module/Proxy.pm | 10 | ||||
-rwxr-xr-x | scripts/manaproxy | 11 |
2 files changed, 9 insertions, 12 deletions
diff --git a/lib/ManaTools/Module/Proxy.pm b/lib/ManaTools/Module/Proxy.pm index 3c078ef4..d726a7d4 100644 --- a/lib/ManaTools/Module/Proxy.pm +++ b/lib/ManaTools/Module/Proxy.pm @@ -46,9 +46,16 @@ has '+icon' => ( ); has '+name' => ( - default => "Proxymanager", + lazy => 1, + builder => '_nameInitializer', ); +sub _nameInitializer { + my $self = shift; + + return ($self->loc->N("manaproxy - Proxy configuration")); +}; + =head1 VERSION Version 1.0.0 @@ -235,7 +242,6 @@ sub _manageProxyDialog { my $appIcon = yui::YUI::app()->applicationIcon(); ## set new title to get it in dialog my $newTitle = $self->loc->N("Proxies configuration"); - yui::YUI::app()->setApplicationTitle($newTitle); my $factory = yui::YUI::widgetFactory; my $optional = yui::YUI::optionalWidgetFactory; diff --git a/scripts/manaproxy b/scripts/manaproxy index 61c99d51..323bc0d5 100755 --- a/scripts/manaproxy +++ b/scripts/manaproxy @@ -23,16 +23,7 @@ use ManaTools::Module::Proxy; use yui; -my $wm_icon = "/usr/share/mcc/themes/default/drakproxy-mdk.png"; -my $wm_name = "Proxies configuration"; - -yui::YUI::app()->setApplicationTitle($wm_name); -yui::YUI::app()->setApplicationIcon($wm_icon); - -my $proxyMan = ManaTools::Module::Proxy->new({ - icon => $wm_icon, - name => $wm_name - }); +my $proxyMan = ManaTools::Module::Proxy->new(); $proxyMan->start(); 1; |