mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 11:38:12 +08:00
Ensure the LoadPreferences message is dispatched with None when no preferences exist (#3198)
* preference load message on default load * review fixup
This commit is contained in:
@@ -147,9 +147,7 @@ export function createPersistenceManager(editor: Editor, portfolio: PortfolioSta
|
||||
|
||||
async function loadPreferences() {
|
||||
const preferences = await get<Record<string, unknown>>("preferences", graphiteStore);
|
||||
if (!preferences) return;
|
||||
|
||||
editor.handle.loadPreferences(JSON.stringify(preferences));
|
||||
editor.handle.loadPreferences(preferences ? JSON.stringify(preferences) : undefined);
|
||||
}
|
||||
|
||||
// FRONTEND MESSAGE SUBSCRIPTIONS
|
||||
|
||||
Reference in New Issue
Block a user