From ee0fd7b78cd38e98e74f2cf2fed627c37225c9f0 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:47:37 +0900 Subject: [PATCH] fix: handle unspecified args --- helpers/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/ui.py b/helpers/ui.py index 985bc1d..da4b476 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -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: Gtk.main_quit() return @@ -622,7 +622,7 @@ def save_res_and_quit() -> None: j = json.dumps(data, indent=2) with open(res_path, "w") as outfile: 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): with open(res_path, "r") as infile: