fix: multiple fixes

This commit is contained in:
fufsob committed 2026-09-15 03:08:32 +00:00
1 parent 5c6b2b4163
commit f325e76b2f
22 files changed
+107 -92

No files matched your search

+5 -1
View File
@@ -607,7 +607,11 @@ class ProxyTui(App):
def perform(self, action, row):
def with_text(text=""):
argv = action.argv(row, text, self.states)
try:
argv = action.argv(row, text, self.states)
except (ValueError, IndexError) as e: # an unbalanced quote in a typed command
self.feedback(f"Cannot run that: {e}", False)
return
confirm = action.confirm(row) if callable(action.confirm) else action.confirm
if confirm:
self.push_screen(Confirm(f"proxy-ctl {shlex.join(argv)}"), lambda ok: ok and self.run_argv(action.mode, argv))