Preferences open over the Home page (#313)

The Home page returned from the frame before the Preferences window was
drawn, so the gear, Ctrl+, and Home's Preferences / Keyboard Shortcuts
links only set the flag and the dialog appeared after leaving Home.
Draw the Preferences window on Home too.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tobias BreckleandClaude Opus 5.5 authored and GitHub committed 2026-10-12 11:44:07 -04:00
1 parent e6e0a7ebb5
commit 250d8a2c04
2 files changed
+26

No files matched your search

+2
View File
@@ -978,6 +978,8 @@ impl SolveApp {
if self.home.open {
home::show(self, ui);
if self.home.open {
// Preferences and Keyboard Shortcuts open from Home too (its links, the gear, Ctrl+,).
prefs::show(self, ui.ctx());
return;
}
}