mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
console: fix options signal
This commit is contained in:
parent
e9eee5a6da
commit
ec6934d339
@ -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()
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user