aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Module/Users.pm
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-05-09 09:44:15 +0200
committerMaarten Vanraes <alien@mageia.org>2016-05-09 10:22:32 +0200
commitbfbd54060e10f0f2cdfa417643f6dedee8fe0984 (patch)
tree3de0af4cce6726f3f8ac0576c1cc741c2ef7b074 /lib/ManaTools/Module/Users.pm
parent2694a6180633ca8c5b176170b75d0189d3e42b75 (diff)
downloadmanatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar
manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar.gz
manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar.bz2
manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.tar.xz
manatools-bfbd54060e10f0f2cdfa417643f6dedee8fe0984.zip
Modules: provide title & icon using the new Module
Diffstat (limited to 'lib/ManaTools/Module/Users.pm')
-rw-r--r--lib/ManaTools/Module/Users.pm13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/ManaTools/Module/Users.pm b/lib/ManaTools/Module/Users.pm
index 715765d3..3e872ffa 100644
--- a/lib/ManaTools/Module/Users.pm
+++ b/lib/ManaTools/Module/Users.pm
@@ -103,19 +103,16 @@ has 'moduleName' => (
default => 'manauser',
);
-has '+icon' => (
- default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manauser.png'),
-);
-
has '+name' => (
- lazy => 1,
- builder => '_nameInitializer',
+ default => 'manauser',
+ required => 0,
+ init_arg => undef,
);
-sub _nameInitializer {
+sub _titleInitializer {
my $self = shift;
- return ($self->loc->N("manauser - Mageia Users Management Tool"));
+ return ($self->loc->N("%s - Users Management Tool", $self->name()));
}
# main dialog