From b29516daec041aa63b7414efddb25da0617247c1 Mon Sep 17 00:00:00 2001 From: Martin Vladic Date: Thu, 14 Nov 2024 14:14:53 +0100 Subject: [PATCH] Fixed: [LVGL] White screen while coping font from one project to another #632 --- packages/project-editor/features/font/font.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/project-editor/features/font/font.tsx b/packages/project-editor/features/font/font.tsx index 0e32da75..c3f6f9f2 100644 --- a/packages/project-editor/features/font/font.tsx +++ b/packages/project-editor/features/font/font.tsx @@ -1737,7 +1737,10 @@ export class Font extends EezObject { } async loadLvglGlyphs(projectStore: ProjectStore) { - if (!this.lvglRanges && !this.lvglSymbols) { + if ( + (!this.lvglRanges && !this.lvglSymbols) || + !ProjectEditor.getProjectStore(this) + ) { return; }