mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 13:23:22 +00:00
prefs.set did not check the folder given as recoveryFolder or pluginsFolder, beyond the automation roots check, so a control or MCP caller could save a folder that does not exist, a file, or a folder the app cannot use. Only the Preferences dialog checked the folder itself. The dialog's folder checks move to the engine, and prefs.set runs them after the automation roots check. A folder that fails returns the same error the dialog shows, and no preference changes. An empty value, an omitted value and a folder the preference already holds are not checked. The Wasm build skips the check, as the dialog did. The dialog's OK now gets the check from prefs.set, and Choose… calls the moved check directly.