Only update image on save
This commit is contained in:
parent
76a907c586
commit
828f266171
@ -118,7 +118,9 @@ def main():
|
||||
if event == sg.WIN_CLOSED:
|
||||
break
|
||||
|
||||
if event == "-TITLE-" or event == '-SUBTITLE-':
|
||||
# if event == "-TITLE-" or event == '-SUBTITLE-':
|
||||
|
||||
if event == "-SAVE-":
|
||||
if values['-TITLE-'] != title or values['-SUBTITLE-'] != subtitle:
|
||||
title = values['-TITLE-']
|
||||
subtitle = values['-SUBTITLE-']
|
||||
@ -128,9 +130,6 @@ def main():
|
||||
bio = BytesIO()
|
||||
thumbnail.save(bio, format = 'PNG')
|
||||
window['-IMAGE-'].update(data = bio.getvalue())
|
||||
|
||||
|
||||
if event == "-SAVE-":
|
||||
save_path = save_filename()
|
||||
image.save(save_path, 'PNG')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user