From 959afc8a957c9d557018ac537e32492368d9aaf4 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Sun, 16 Jun 2024 16:08:15 +0200 Subject: [PATCH] GUI: Move Encrypted data placeholder for op usage --- npbackup/gui/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/npbackup/gui/config.py b/npbackup/gui/config.py index bfbd216..939b7e1 100644 --- a/npbackup/gui/config.py +++ b/npbackup/gui/config.py @@ -64,6 +64,9 @@ def delete(self, key): sg.TreeData.delete = delete +ENCRYPTED_DATA_PLACEHOLDER = "<{}>".format(_t("config_gui.encrypted_data")) + + def ask_manager_password(manager_password: str) -> bool: if manager_password: if sg.PopupGetText( @@ -111,8 +114,6 @@ def config_gui(full_config: dict, config_file: str): byte_units = ["B", "KB", "KiB", "MB", "MiB", "GB", "GiB", "TB", "TiB", "PB", "PiB"] - ENCRYPTED_DATA_PLACEHOLDER = "<{}>".format(_t("config_gui.encrypted_data")) - def get_objects() -> List[str]: """ Adds repos and groups in a list for combobox