Don't allow changing current glyph if project is not loaded
This commit is contained in:
parent
fd356b5aa8
commit
43ea03b175
6
main.py
6
main.py
@ -73,11 +73,17 @@ def menu_file_save_project_as_click():
|
|||||||
|
|
||||||
def button_prev_glyph_click():
|
def button_prev_glyph_click():
|
||||||
global canvas_editor
|
global canvas_editor
|
||||||
|
global project
|
||||||
|
if not project.loaded:
|
||||||
|
return
|
||||||
canvas_editor.prev_glyph()
|
canvas_editor.prev_glyph()
|
||||||
update_glyph_preview()
|
update_glyph_preview()
|
||||||
|
|
||||||
def button_next_glyph_click():
|
def button_next_glyph_click():
|
||||||
global canvas_editor
|
global canvas_editor
|
||||||
|
global project
|
||||||
|
if not project.loaded:
|
||||||
|
return
|
||||||
canvas_editor.next_glyph()
|
canvas_editor.next_glyph()
|
||||||
update_glyph_preview()
|
update_glyph_preview()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user