#749: clear the shortcuts panel after the home screen draws, so it never shows for a frame

This commit is contained in:
bflatastic committed 2026-10-17 20:43:37 +07:00
1 parent 96091494a5
commit c532053396
1 file changed
+3 -2
+3 -2
View File
@@ -1414,10 +1414,11 @@ impl FigApp {
return;
}
if !self.has_files() || self.ui.home {
// The shortcuts panel belongs to the canvas; it doesn't hang over the home screen.
self.ui.shortcuts_panel = false;
tabs::tab_bar(self, ui);
home::show(self, ui);
// The shortcuts panel belongs to the canvas; it doesn't hang over the home screen
// (cleared after the home widgets, which may have just asked for it).
self.ui.shortcuts_panel = false;
dialogs::keys(self, &ctx);
dialogs::show(self, &ctx);
self.toast_ui(&ctx);