mirror of
https://github.com/netinvent/npbackup.git
synced 2025-11-10 06:01:39 +08:00
GUI: Fix adding multiple files to backup path at once don't expand
This commit is contained in:
parent
b9e63b26b2
commit
00a2752157
1 changed files with 7 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ __intname__ = "npbackup.gui.config"
|
||||||
__author__ = "Orsiris de Jong"
|
__author__ = "Orsiris de Jong"
|
||||||
__copyright__ = "Copyright (C) 2022-2025 NetInvent"
|
__copyright__ = "Copyright (C) 2022-2025 NetInvent"
|
||||||
__license__ = "GPL-3.0-only"
|
__license__ = "GPL-3.0-only"
|
||||||
__build__ = "2025012401"
|
__build__ = "2025013101"
|
||||||
|
|
||||||
|
|
||||||
from typing import List, Tuple
|
from typing import List, Tuple
|
||||||
|
|
@ -2325,7 +2325,12 @@ Google Cloud storage: GOOGLE_PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS\n\
|
||||||
node = sg.PopupGetText(_t("generic.add_manually"))
|
node = sg.PopupGetText(_t("generic.add_manually"))
|
||||||
icon = FILE_ICON
|
icon = FILE_ICON
|
||||||
if tree and node:
|
if tree and node:
|
||||||
tree.insert("", node, node, node, icon=icon)
|
# Check if node is ADD-PATH-FILES which can contain multiple elements separated by semicolon
|
||||||
|
if key == "backup_opts.paths" and ";" in node:
|
||||||
|
for path in node.split(";"):
|
||||||
|
tree.insert("", path, path, path, icon=icon)
|
||||||
|
else:
|
||||||
|
tree.insert("", node, node, node, icon=icon)
|
||||||
window[key].update(values=tree)
|
window[key].update(values=tree)
|
||||||
continue
|
continue
|
||||||
if event in (
|
if event in (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue