From 7d000593f686824ad4f6f8c1c7560a54cb08fc1e Mon Sep 17 00:00:00 2001 From: oleting Date: Tue, 9 Feb 2021 15:46:14 +0100 Subject: [PATCH] + fix --- gui/gui.py | 6 ------ gui/new_window_layouts.py | 2 -- gui/utils.py | 4 +--- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/gui/gui.py b/gui/gui.py index 4133b01..6ca260d 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -162,12 +162,6 @@ class Gui: sg.popup( 'This was made by plexx(Image generation), Weckyy702(Interpreter) and oleting(Frontend). Used Python 3.9.1, Libraries PySimpleGUI and Pillow.', title='Credits') - # handle fun feature - if event == '-DONATE-': - logging.debug(('event = ' + str(event))) - sg.popup_notify( - ('You donated $' + str(random.randint(500, 100000000)) + '.'), title='Thanks') - # needed Input diff --git a/gui/new_window_layouts.py b/gui/new_window_layouts.py index bedc27b..a6acd4f 100644 --- a/gui/new_window_layouts.py +++ b/gui/new_window_layouts.py @@ -15,8 +15,6 @@ class Layout_std: sg.Button(button_text='Create Image', key='-CREATE-'), sg.Button(button_text='Credits', key='-CREDITS-'), sg.Button(button_text='Settings', key='-SETTINGS-'), - # * fun feature - sg.Button(button_text='Donate', key='-DONATE-'), ] ] diff --git a/gui/utils.py b/gui/utils.py index 1274376..7678e0b 100644 --- a/gui/utils.py +++ b/gui/utils.py @@ -34,9 +34,7 @@ def nassi(input_path: str, output_path: str, outputname: str, types, remove_tags cancel = NSD.convert_to_image(output_directory, on_conflict=behaviour) - if not cancel: - return None - + return output_directory, is_empty