mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: remember last used editor theme
This commit is contained in:
1 parent
880f706c3a
commit
e7b4b5de5e
2 files changed
+3
-2
No files matched your search
@@ -166,5 +166,6 @@ export function registerAction(
|
||||
if (suggestWidget?._setDetailsVisible) suggestWidget._setDetailsVisible(true);
|
||||
handlePasteEvent(editor);
|
||||
}
|
||||
return loadThemePromise;
|
||||
if (!customOptions.theme) return null;
|
||||
return loadThemePromise.then(() => editor.updateOptions({ theme: customOptions.theme }));
|
||||
}
|
||||
Reference in new issue
Block a user