mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
fix: handle unspecified args
This commit is contained in:
1 parent
562f6453dc
commit
ee0fd7b78c
1 file changed
+2
-2
+2
-2
@@ -611,7 +611,7 @@ def block_signals(state: bool = True) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def save_res_and_quit() -> None:
|
def save_res_and_quit(*args) -> None:
|
||||||
if App.window.props.is_maximized:
|
if App.window.props.is_maximized:
|
||||||
Gtk.main_quit()
|
Gtk.main_quit()
|
||||||
return
|
return
|
||||||
@@ -622,7 +622,7 @@ def save_res_and_quit() -> None:
|
|||||||
j = json.dumps(data, indent=2)
|
j = json.dumps(data, indent=2)
|
||||||
with open(res_path, "w") as outfile:
|
with open(res_path, "w") as outfile:
|
||||||
outfile.write(j)
|
outfile.write(j)
|
||||||
logger.info(f"Wrote initial window size to '{res_path}'")
|
logger.info(f"Wrote window size to '{res_path}'")
|
||||||
|
|
||||||
if os.path.isfile(res_path):
|
if os.path.isfile(res_path):
|
||||||
with open(res_path, "r") as infile:
|
with open(res_path, "r") as infile:
|
||||||
|
|||||||
Reference in new issue
Block a user