Skip to content

Commit

Permalink
Update button names
Browse files Browse the repository at this point in the history
  • Loading branch information
nietoga committed Dec 4, 2024
1 parent 7ec5f29 commit 1925372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run_main_window():
key="-SUBSCRIBER_EMAIL-",
),
],
[sg.Button("Save"), sg.Button("Close")],
[sg.Button("Save"), sg.Button("Hide")],
]

window = sg.Window(
Expand All @@ -75,7 +75,7 @@ def run_main_window():
if event == "Save":
user_data.set_user_data("name", values["-NAME-"])
user_data.set_user_data("subscriber_email", values["-SUBSCRIBER_EMAIL-"])
elif event in [sg.WINDOW_CLOSED, "Close"]:
elif event in [sg.WINDOW_CLOSED, "Hide"]:
break

window.close()
Expand Down

0 comments on commit 1925372

Please sign in to comment.