Don't allow changing current glyph if project is not loaded

This commit is contained in:
mrkubax10 2024-03-03 19:17:07 +01:00
parent fd356b5aa8
commit 43ea03b175

View File

@ -73,11 +73,17 @@ def menu_file_save_project_as_click():
def button_prev_glyph_click():
global canvas_editor
global project
if not project.loaded:
return
canvas_editor.prev_glyph()
update_glyph_preview()
def button_next_glyph_click():
global canvas_editor
global project
if not project.loaded:
return
canvas_editor.next_glyph()
update_glyph_preview()