From f4f3e61b83c3cedefae061fecdcd983b450b779c Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 9 Aug 2025 16:01:00 +0900 Subject: [PATCH] fix: pass correct button to submit method --- dzgui.sh | 6 +++--- helpers/ui.py | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index 9773334..a4e05d8 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -588,7 +588,7 @@ fetch_helpers_by_sum(){ ["funcs"]="b3a45a42bc748dbcbebcd1a7748609cd" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["servers.py"]="4c5013aaf694806cfecd4f1c905bdc9a" - ["ui.py"]="5335d86ef1dae543894cd8bdff67b018" + ["ui.py"]="294a7daf544a96e2a108d252df5e0676" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ) local author="aclist" @@ -1029,13 +1029,13 @@ initial_setup(){ watcher_deps check_architecture test_connection - fetch_helpers > >(pdialog "Checking helper files") +# fetch_helpers > >(pdialog "Checking helper files") varcheck source "$config_file" lock legacy_vars legacy_cols - check_version +# check_version check_map_count steam_deps migrate_files diff --git a/helpers/ui.py b/helpers/ui.py index 19a9770..42e326e 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -3543,9 +3543,10 @@ class Options(Gtk.Box): self, entry: Gtk.Entry, context: Preferences ) -> None: text = entry.get_text() + button = entry.sibling if not self._is_valid_text(text, context): return - self._on_save_clicked(None, entry, context) + self._on_save_clicked(button, entry, context) def _make_grid(self, rows: list) -> Gtk.Grid: grid = Gtk.Grid( @@ -3569,7 +3570,7 @@ class Options(Gtk.Box): return grid def _on_save_clicked( - self, button: Gtk.Button | None, entry: Gtk.Entry, context: Preferences + self, button: Gtk.Button, entry: Gtk.Entry, context: Preferences ) -> None: show_wait_dialog = True wait_msg = "Working"