mirror of
https://github.com/aclist/dztui.git
synced 2026-08-25 17:32:36 +02:00
fix: pass correct button to submit method
This commit is contained in:
parent
3d91e07d25
commit
f4f3e61b83
6
dzgui.sh
6
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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user