plugins: fix number of callback arguments (#236)

* system management: fix number of callback arguments

fixes runtime warning:
TypeError: changePluginSize() takes exactly 4 arguments (3 given)

looks like it was overlooked in 66f76df4d3

* places: remove leftover argument from callback
This commit is contained in:
monsta 2019-08-19 16:23:46 +03:00 committed by Clement Lefebvre
parent 99797f3a40
commit 210eaf0929
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class pluginclass(object):
if self.showtrash:
self.refreshTrash()
def changePluginSize(self, settings, key, args = None):
def changePluginSize(self, settings, key):
self.allowScrollbar = self.settings.get_boolean("allow-scrollbar")
self.width = self.settings.get_int("width")
if not self.allowScrollbar:

View File

@ -65,7 +65,7 @@ class pluginclass(object):
def wake(self):
pass
def changePluginSize(self, settings, key, args):
def changePluginSize(self, settings, key):
self.allowScrollbar = self.settings.get_boolean("allow-scrollbar")
if key == "width":
self.width = settings.get_int(key)