mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-09 13:11:58 +08:00
GUI: Fix confirmation for repo/group delete action, see #135
This commit is contained in:
parent
5ce8c89788
commit
23ecad40ab
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ __intname__ = "npbackup.gui.config"
|
|||
__author__ = "Orsiris de Jong"
|
||||
__copyright__ = "Copyright (C) 2022-2025 NetInvent"
|
||||
__license__ = "GPL-3.0-only"
|
||||
__build__ = "2025013101"
|
||||
__build__ = "2025022301"
|
||||
|
||||
|
||||
from typing import List, Tuple
|
||||
|
@ -202,7 +202,7 @@ def config_gui(full_config: dict, config_file: str):
|
|||
result = sg.PopupYesNo(
|
||||
_t("config_gui.are_you_sure_to_delete") + f" {object_type} {object_name} ?"
|
||||
)
|
||||
if result:
|
||||
if result == "Yes":
|
||||
full_config.d(f"{object_type}.{object_name}")
|
||||
full_config = update_object_gui(full_config, None, unencrypted=False)
|
||||
update_global_gui(full_config, unencrypted=False)
|
||||
|
|
Loading…
Add table
Reference in a new issue