[modules/disk] Remove "custom" instance callback

This callback just makes it really hard to see for the user what is
going on. The alias the user provides should *always* match the
instance, so that it can be used in a meaningful way in the click
action, for example (otherwise, something like "nautilus {instance}"
gets really hard to interpret.
This commit is contained in:
Tobias Witek 2016-11-05 15:45:33 +01:00
parent 67142d642b
commit e889098c77

View file

@ -31,9 +31,6 @@ class Module(bumblebee.module.Module):
bumblebee.util.bytefmt(self._size), self._perc)
)
def instance(self, widget=None):
return self._path
def warning(self, widget):
return self._perc > self._config.parameter("warning", 80)