Better decrypt menu message

This commit is contained in:
Orsiris de Jong 2023-02-03 08:04:21 +01:00
parent 15aab16b93
commit 293d88e62f
4 changed files with 9 additions and 5 deletions

View file

@ -120,7 +120,7 @@ def config_gui(config_dict: dict, config_file: str):
config_dict[section][entry] = value
return config_dict
right_click_menu = ["", [_t("generic.decrypt")]]
right_click_menu = ["", [_t("config_gui.show_decrypted")]]
backup_col = [
[
@ -480,7 +480,7 @@ def config_gui(config_dict: dict, config_file: str):
sg.Popup(_t("config_gui.configuration_saved"), keep_on_top=True)
logger.info("Configuration saved successfully.")
break
if event == _t("generic.decrypt"):
if event == _t("config_gui.show_decrypted"):
if ask_backup_admin_password(config_dict):
update_gui(window, config_dict, unencrypted=True)
if event == "create_task":

View file

@ -96,7 +96,7 @@ def _about_gui(version_string: str, config_dict: dict) -> None:
if sub_result:
sys.exit(0)
else:
sg.Popup(_t("config_gui.auto_upgrade_failed"))
sg.Popup(_t("config_gui.auto_upgrade_failed"), keep_on_top=True)
window.close()

View file

@ -73,3 +73,5 @@ en:
machine_identification: Machine identification
machine_id: Machine identifier
machine_group: Machine group
show_decrypted: Show decrypted

View file

@ -73,3 +73,5 @@ fr:
machine_identification: Identification machine
machine_id: Identificateur machine
machine_group: Groupe machine
show_decrypted: Voir déchiffré