diff options
-rw-r--r-- | lib/ManaTools/Shared/disk_backend/Plugin/Disk.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ManaTools/Shared/disk_backend/Plugin/Disk.pm b/lib/ManaTools/Shared/disk_backend/Plugin/Disk.pm index ba47fc63..6f58d1d7 100644 --- a/lib/ManaTools/Shared/disk_backend/Plugin/Disk.pm +++ b/lib/ManaTools/Shared/disk_backend/Plugin/Disk.pm @@ -135,7 +135,8 @@ class_has '+restrictions' => ( override('label', sub { my $self = shift; my $label = super; - if ($self->out_length() < 1) { + my @children = $self->children(); + if (scalar(@children) < 1) { return $label; } return $label .'('. join(',', sort map { $_->label(); } @children) .')'; |