From 7237888ec7e511f64c98dd81c59e7a2450c2b496 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Wed, 30 Dec 2015 15:06:15 +0100 Subject: fixed icon and title --- lib/ManaTools/Module/DisplayManager.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'lib/ManaTools') diff --git a/lib/ManaTools/Module/DisplayManager.pm b/lib/ManaTools/Module/DisplayManager.pm index e5a7db88..1502f22c 100644 --- a/lib/ManaTools/Module/DisplayManager.pm +++ b/lib/ManaTools/Module/DisplayManager.pm @@ -47,9 +47,16 @@ has '+icon' => ( ); has '+name' => ( - default => "DisplayManager", + lazy => 1, + builder => '_nameInitializer', ); +sub _nameInitializer { + my $self = shift; + + return ($self->loc->N("manadm - Display Manager")); +} + =head1 VERSION Version 1.0.0 @@ -144,11 +151,6 @@ sub start { return; } - ## set new title to get it in dialog - yui::YUI::app()->setApplicationTitle($self->name); - ## set icon if not already set by external launcher - yui::YUI::app()->setApplicationIcon($self->icon); - # initialize dm descriptions for i18n $self->_build_desc_for_i18n(); @@ -186,7 +188,6 @@ sub _manageProxyDialog { my $appIcon = yui::YUI::app()->applicationIcon(); ## set new title to get it in dialog my $newTitle = $self->loc->N("Display Manager"); - yui::YUI::app()->setApplicationTitle($newTitle); my $factory = yui::YUI::widgetFactory; my $optional = yui::YUI::optionalWidgetFactory; -- cgit v1.2.1