Skip to content

Commit

Permalink
List of changes:
Browse files Browse the repository at this point in the history
- Fixed a bug when closing the screenshot saving window
- Launch parameters can now be written in multiple lines
  • Loading branch information
Communist02 committed Feb 5, 2024
1 parent 834bd27 commit c41163a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import fonts

name_program = 'Anime Player'
version = '1.0'
version = '1.0.1'
loc = localization.strings
formats = ('mp4', 'mkv', 'webm', 'avi', 'mov', 'wmv', '3gp', 'm4a', 'mp3', 'flac', 'ogg', 'aac', 'opus', 'wav')

Expand Down Expand Up @@ -873,7 +873,8 @@ def main():
while True:
event, values = screenshot_window.read()
if event == sg.WINDOW_CLOSED or event == loc['Close']:
screenshot_path = values['-INPUT-'].strip()
if values['-INPUT-'] is not None and values['-INPUT-'] != '':
screenshot_path = values['-INPUT-'].strip()
break
elif event == '-PASTE-':
screenshot_window['-INPUT-'].update(sg.clipboard_get())
Expand All @@ -898,7 +899,7 @@ def main():
sg.Text(loc['Manual launch parameters']),
],
[
sg.Input(sg.user_settings_get_entry('launchParameters', ''), size=(35, 10), key='-INPUT-'),
sg.Multiline(sg.user_settings_get_entry('launchParameters', ''), size=(35, 10), key='-INPUT-'),
sg.Text('', key='-TEST-')
],
[
Expand Down

0 comments on commit c41163a

Please sign in to comment.