aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-12-30 15:06:15 +0100
committerAngelo Naselli <anaselli@linux.it>2015-12-30 15:06:15 +0100
commit7237888ec7e511f64c98dd81c59e7a2450c2b496 (patch)
tree07d910b7aa194d1e3b3e5f32d29634351516a5f9 /lib/ManaTools
parentda652f7f2d55d3933632017e4bbcac5ae227f078 (diff)
downloadmanatools-7237888ec7e511f64c98dd81c59e7a2450c2b496.tar
manatools-7237888ec7e511f64c98dd81c59e7a2450c2b496.tar.gz
manatools-7237888ec7e511f64c98dd81c59e7a2450c2b496.tar.bz2
manatools-7237888ec7e511f64c98dd81c59e7a2450c2b496.tar.xz
manatools-7237888ec7e511f64c98dd81c59e7a2450c2b496.zip
fixed icon and title
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/Module/DisplayManager.pm15
1 files changed, 8 insertions, 7 deletions
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;