Commit f5647c3f authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

Statesaver: rename arg "what" to "widgets"

parent eb2ad768
......@@ -19,14 +19,14 @@ class StateSaver(QObject):
savers = {}
def __init__(self, *what):
def __init__(self, *widgets):
pref = Internal.Preferences
if what[0] not in StateSaver.savers:
StateSaver.savers[what[0]] = self
if widgets[0] not in StateSaver.savers:
StateSaver.savers[widgets[0]] = self
self.widgets = []
for widget in what:
for widget in widgets:
name = self.__generateName(widget)
self.widgets.append((name, widget))
pref.addString('States', name + 'State')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment