mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 22:15:43 +08:00
Config GUI needs full config
This commit is contained in:
parent
0dd340473c
commit
6910fcf077
1 changed files with 3 additions and 3 deletions
|
@ -571,7 +571,7 @@ def _main_gui():
|
||||||
full_config = npbackup.configuration.load_config(config_file)
|
full_config = npbackup.configuration.load_config(config_file)
|
||||||
# TODO add a repo selector
|
# TODO add a repo selector
|
||||||
repo_config, inherit_config = npbackup.configuration.get_repo_config(full_config)
|
repo_config, inherit_config = npbackup.configuration.get_repo_config(full_config)
|
||||||
repo_list = list(full_config.g("repos").keys())
|
repo_list = npbackup.configuration.get_repo_list(full_config)
|
||||||
|
|
||||||
backup_destination = _t("main_gui.local_folder")
|
backup_destination = _t("main_gui.local_folder")
|
||||||
backend_type, repo_uri = get_anon_repo_uri(repo_config.g('repo_uri'))
|
backend_type, repo_uri = get_anon_repo_uri(repo_config.g('repo_uri'))
|
||||||
|
@ -750,10 +750,10 @@ def _main_gui():
|
||||||
# Make sure we trigger a GUI refresh after forgetting snapshots
|
# Make sure we trigger a GUI refresh after forgetting snapshots
|
||||||
event = "state-button"
|
event = "state-button"
|
||||||
if event == "operations":
|
if event == "operations":
|
||||||
repo_config = operations_gui(repo_config, config_file)
|
full_config = operations_gui(full_config, config_file)
|
||||||
event = "state-button"
|
event = "state-button"
|
||||||
if event == "configure":
|
if event == "configure":
|
||||||
repo_config = config_gui(repo_config, config_file)
|
repo_config = config_gui(full_config, config_file)
|
||||||
# Make sure we trigger a GUI refresh when configuration is changed
|
# Make sure we trigger a GUI refresh when configuration is changed
|
||||||
event = "state-button"
|
event = "state-button"
|
||||||
if event == _t("generic.destination"):
|
if event == _t("generic.destination"):
|
||||||
|
|
Loading…
Reference in a new issue