GUI: Show file name in configuration window title

This commit is contained in:
deajan 2024-10-29 12:05:07 +01:00
parent 5bc6acaa16
commit 9ab3fb8850

View file

@ -2055,8 +2055,8 @@ Google Cloud storage: GOOGLE_PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS\n\
right_click_menu = ["", [_t("config_gui.show_decrypted")]]
window = sg.Window(
"Configuration",
config_layout(),
title="Configuration",
layout=config_layout(),
# size=(800, 650),
auto_size_text=True,
auto_size_buttons=False,
@ -2089,6 +2089,9 @@ Google Cloud storage: GOOGLE_PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS\n\
current_object_type = None
current_object_name = None
if config_file:
window.set_title(f"Configuration - {config_file}")
while True:
event, values = window.read()
# Get object type for various delete operations