From e889098c770aa609a40b74233e85d3fe60efab44 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sat, 5 Nov 2016 15:45:33 +0100 Subject: [PATCH] [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. --- bumblebee/modules/disk.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/bumblebee/modules/disk.py b/bumblebee/modules/disk.py index da06893..17c8e40 100644 --- a/bumblebee/modules/disk.py +++ b/bumblebee/modules/disk.py @@ -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)