From 1cde06f3ae8ed323e45c8942299317623a2d7594 Mon Sep 17 00:00:00 2001 From: TheHumanRobot <75536101+TheHumanRobot@users.noreply.github.com> Date: Wed, 22 Dec 2021 08:05:50 -0500 Subject: [PATCH] Added confirmation popup --- Preroll.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Preroll.py b/Preroll.py index d12ef02..d396b2c 100644 --- a/Preroll.py +++ b/Preroll.py @@ -146,6 +146,7 @@ while True: settings['Thanksgiving Enabled'] = values['Thanksgiving Enabled'] settings['Christmas Enabled'] = values['Christmas Enabled'] settings['Default'] = values['Default'] + sg.popup('Your Changes are saved') if event == 'Submit': settings['URL'] = values['URL'] @@ -189,7 +190,10 @@ while True: settings['Halloween Enabled'] = values['Halloween Enabled'] settings['Thanksgiving Enabled'] = values['Thanksgiving Enabled'] settings['Christmas Enabled'] = values['Christmas Enabled'] + settings['Default'] = values['Default'] PrerollUpdate.update() + sg.popup('Your Pre-roll is updated!') + if event == 'Freq': if values['Freq'] == ['Monthly']: window['Month'].update(visible=True) @@ -214,4 +218,4 @@ while True: if event == sg.WIN_CLOSED: break -window.close() \ No newline at end of file +window.close()