Skip to content

Commit

Permalink
Some more eyecandy
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Feb 8, 2023
1 parent 68c0bf1 commit 93ec1b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions npbackup/gui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
__author__ = "Orsiris de Jong"
__copyright__ = "Copyright (C) 2022-2023 NetInvent"
__license__ = "GPL-3.0-only"
__build__ = "2023020801"
__build__ = "2023020802"


import os
Expand All @@ -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
Expand Down Expand Up @@ -484,7 +484,7 @@ def update_config_dict(values, config_dict):
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):
Expand Down

0 comments on commit 93ec1b1

Please sign in to comment.