Skip to content

Commit

Permalink
GUI: Show file name in configuration window title
Browse files Browse the repository at this point in the history
  • Loading branch information
deajan committed Oct 29, 2024
1 parent 5bc6aca commit 9ab3fb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions npbackup/gui/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2055,8 +2055,8 @@ def config_layout() -> List[list]:

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,
Expand Down Expand Up @@ -2089,6 +2089,9 @@ def config_layout() -> List[list]:
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
Expand Down

0 comments on commit 9ab3fb8

Please sign in to comment.