mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-29 17:54:59 +01:00
prod merge: Preferences keeps typed values on Escape (PreferencesWindow::escape_keeps_typing, as production's Live window)
This commit is contained in:
1 parent
d5892bdf6a
commit
cdfc6c1d71
1 file changed
+2
@@ -199,6 +199,8 @@ impl PdfCraftApp {
|
||||
PreferencesWindow::new(Bind::bound(state))
|
||||
.mode(PreferencesMode::Live)
|
||||
.layout(PreferencesLayout::Cards)
|
||||
// Production applies each row as it changes, and Escape closes the window with the typing kept.
|
||||
.escape_keeps_typing()
|
||||
.remember(SaveKey::new("pdfcraft.preferences"))
|
||||
.show(ui, &mut prefs)
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user