mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-13 15:49:09 +08:00
Don't reload repository info on each gui action
This commit is contained in:
parent
64a6da8891
commit
d9a2827d2d
1 changed files with 3 additions and 4 deletions
|
|
@ -595,7 +595,6 @@ def main_gui(config_dict: dict, config_file: str, version_string: str):
|
||||||
sg.PopupNoFrame(_t("main_gui.unknown_repo"))
|
sg.PopupNoFrame(_t("main_gui.unknown_repo"))
|
||||||
if event == "about":
|
if event == "about":
|
||||||
_about_gui(version_string, config_dict)
|
_about_gui(version_string, config_dict)
|
||||||
|
if event == "state-button":
|
||||||
# Update GUI on every window.read timeout = every minute or everytime an event happens, including the "uptodate" button
|
|
||||||
current_state, snapshot_list = get_gui_data(config_dict)
|
current_state, snapshot_list = get_gui_data(config_dict)
|
||||||
_gui_update_state(window, current_state, snapshot_list)
|
_gui_update_state(window, current_state, snapshot_list)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue