mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
console: fix a crash that sometimes occurs when setting a limit
This commit is contained in:
parent
c794d362f9
commit
fe6957eddb
@ -73,6 +73,8 @@ class ConsoleState(flow.State):
|
|||||||
elif idx < 0:
|
elif idx < 0:
|
||||||
idx = 0
|
idx = 0
|
||||||
self.focus = idx
|
self.focus = idx
|
||||||
|
else:
|
||||||
|
self.focus = None
|
||||||
|
|
||||||
def set_focus_flow(self, f):
|
def set_focus_flow(self, f):
|
||||||
self.set_focus(self.view.index(f))
|
self.set_focus(self.view.index(f))
|
||||||
|
Loading…
Reference in New Issue
Block a user