console: fix options signal

This commit is contained in:
Maximilian Hils 2016-07-24 11:14:36 -07:00
parent e9eee5a6da
commit ec6934d339
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class Options(urwid.WidgetWrap):
)
self.master.loop.widget.footer.update("")
signals.update_settings.connect(self.sig_update_settings)
master.options.changed.connect(self.sig_update_settings)
master.options.changed.connect(lambda sender, updated: self.sig_update_settings(sender))
def sig_update_settings(self, sender):
self.lb.walker._modified()

View File

@ -124,7 +124,7 @@ class StatusBar(urwid.WidgetWrap):
super(StatusBar, self).__init__(urwid.Pile([self.ib, self.master.ab]))
signals.update_settings.connect(self.sig_update_settings)
signals.flowlist_change.connect(self.sig_update_settings)
master.options.changed.connect(self.sig_update_settings)
master.options.changed.connect(lambda sender, updated: self.sig_update_settings(sender))
self.redraw()
def sig_update_settings(self, sender):