From 1206c1bb41fe8efba684336ad4076136b8121114 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 4 Jun 2024 20:20:30 +0200 Subject: [PATCH] GUI: Don't ensure repo password is not empty since it may be inherited --- npbackup/gui/config.py | 6 ------ npbackup/translations/config_gui.en.yml | 1 - npbackup/translations/config_gui.fr.yml | 1 - 3 files changed, 8 deletions(-) diff --git a/npbackup/gui/config.py b/npbackup/gui/config.py index 0ee0f5c..c82f18c 100644 --- a/npbackup/gui/config.py +++ b/npbackup/gui/config.py @@ -2044,12 +2044,6 @@ Google Cloud storage: GOOGLE_PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS\n\ window[option_key].Update(values=tree) continue if event == "--ACCEPT--": - if ( - not values["repo_opts.repo_password"] - and not values["repo_opts.repo_password_command"] - ): - sg.PopupError(_t("config_gui.repo_password_cannot_be_empty")) - continue if object_type != "group" and not values["repo_uri"]: sg.PopupError(_t("config_gui.repo_uri_cannot_be_empty")) continue diff --git a/npbackup/translations/config_gui.en.yml b/npbackup/translations/config_gui.en.yml index 93a2619..9b39286 100644 --- a/npbackup/translations/config_gui.en.yml +++ b/npbackup/translations/config_gui.en.yml @@ -64,7 +64,6 @@ en: configuration_saved: Configuration saved cannot_save_configuration: Could not save configuration. See logs for further info - repo_password_cannot_be_empty: Repo password or password command cannot be empty repo_uri_cannot_be_empty: Repo URI / path cannot be empty set_manager_password: Manager password wrong_password: Wrong password diff --git a/npbackup/translations/config_gui.fr.yml b/npbackup/translations/config_gui.fr.yml index c67df5d..f7b41d9 100644 --- a/npbackup/translations/config_gui.fr.yml +++ b/npbackup/translations/config_gui.fr.yml @@ -65,7 +65,6 @@ fr: configuration_saved: Configuration sauvegardée cannot_save_configuration: Impossible d'enregistrer la configuration. Veuillez consulter les journaux pour plus de détails - repo_password_cannot_be_empty: Le mot de passe du dépot ou la commande de mot de passe ne peuvent être vides repo_uri_cannot_be_empty: L'URI / chemin local dépot de sauvegarde ne peut-être vide set_manager_password: Mot de passe gestionnaire wrong_password: Mot de passe érroné