mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-08 14:05:41 +08:00
Fix false global variable placement
This commit is contained in:
parent
541d7af8c7
commit
4b6e5502a6
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,6 @@ def _main_gui(viewer_mode: bool):
|
|||
global logger
|
||||
global backend_binary
|
||||
global __no_lock
|
||||
global __concurrency
|
||||
global GUI_STATUS_IGNORE_ERRORS
|
||||
|
||||
def check_for_auto_upgrade(config_file: str, full_config: dict) -> bool:
|
||||
|
@ -777,6 +776,7 @@ def _main_gui(viewer_mode: bool):
|
|||
def get_config(
|
||||
config_file: str = None, window: sg.Window = None, repo_name: str = None
|
||||
) -> Tuple:
|
||||
global __concurrency
|
||||
full_config, config_file = get_config_file(config_file=config_file)
|
||||
if full_config and config_file:
|
||||
__concurrency = full_config.g("global_options.allow_concurrent_runs")
|
||||
|
|
Loading…
Add table
Reference in a new issue