mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-24 22:44:04 +08:00
Some more eyecandy
This commit is contained in:
parent
68c0bf1a74
commit
93ec1b193e
1 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ __intname__ = "npbackup.gui.config"
|
|||
__author__ = "Orsiris de Jong"
|
||||
__copyright__ = "Copyright (C) 2022-2023 NetInvent"
|
||||
__license__ = "GPL-3.0-only"
|
||||
__build__ = "2023020801"
|
||||
__build__ = "2023020802"
|
||||
|
||||
|
||||
import os
|
||||
|
@ -29,7 +29,7 @@ def ask_backup_admin_password(config_dict) -> bool:
|
|||
backup_admin_password = configuration.DEFAULT_BACKUP_ADMIN_PASSWORD
|
||||
except KeyError:
|
||||
backup_admin_password = configuration.DEFAULT_BACKUP_ADMIN_PASSWORD
|
||||
if sg.PopupGetText(_t("config_gui.enter_backup_admin_password")) == str(
|
||||
if sg.PopupGetText(_t("config_gui.enter_backup_admin_password"), password_char='*') == str(
|
||||
backup_admin_password
|
||||
):
|
||||
return True
|
||||
|
@ -484,7 +484,7 @@ def config_gui(config_dict: dict, config_file: str):
|
|||
logger.info("Configuration saved successfully.")
|
||||
break
|
||||
else:
|
||||
sg.Popup(_t("config_gui.cannot_save_configuration"), keep_on_top=True)
|
||||
sg.PopupError(_t("config_gui.cannot_save_configuration"), keep_on_top=True)
|
||||
logger.info("Could not save configuration")
|
||||
if event == _t("config_gui.show_decrypted"):
|
||||
if ask_backup_admin_password(config_dict):
|
||||
|
|
Loading…
Reference in a new issue