From c9cdf531767033a26c2a559d6a17ea91c33ab3b6 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 18 Jul 2022 12:31:09 -0400 Subject: [PATCH] Removed unnecessary user settings for the window position --- DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py b/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py index 5b208e21..ee7f27c1 100644 --- a/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py +++ b/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py @@ -48,8 +48,6 @@ def main(): event, values = window.read() # wake every hour print(event, values) if event == sg.WIN_CLOSED or event == 'Exit': - if event == 'Exit': - sg.user_settings_set_entry('-location-', window.current_location()) break if event == 'Add Item': window.metadata += 1