Route UI state save through platform services

This commit is contained in:
2026-06-04 16:48:57 +02:00
parent 7d992931d9
commit dc369c89b0
11 changed files with 47 additions and 12 deletions

View File

@@ -646,6 +646,10 @@ removing those direct platform calls from `Canvas` and brush preset storage.
Document-browser search root selection now dispatches through
`PlatformServices`, preserving the iOS `Inbox` root in the legacy adapter while
removing the iOS-specific branch from `App::dialog_browse`.
Native UI/window state saving now dispatches through `PlatformServices`,
preserving Windows window placement persistence in `WindowsPlatformServices`
and macOS UI state persistence in the legacy adapter while removing platform
guards from `App::ui_save`.
`App::show_cursor`, `App::hide_cursor`, `App::showKeyboard`, and
`App::hideKeyboard` now dispatch through the active service without local
platform guards; unsupported platforms rely on their service no-op behavior.
@@ -1688,7 +1692,7 @@ Results:
dispatch, render debug callback dispatch, render-capture frame hook dispatch,
recording cleanup dispatch, exported-image publish dispatch, persistent
storage flush dispatch, document browse-root dispatch,
live asset/layout reload policy dispatch,
native UI/window state save dispatch, live asset/layout reload policy dispatch,
diagnostic hook dispatch, per-frame platform hook dispatch, picker callback
dispatch, and prepared-file save/download callback dispatch. The live Windows
app now