From 43ea03b1753a117e0b9aaea3b1f4c53bd8885773 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sun, 3 Mar 2024 19:17:07 +0100 Subject: [PATCH] Don't allow changing current glyph if project is not loaded --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index 6415694..98e3ccc 100644 --- a/main.py +++ b/main.py @@ -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()