mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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 }));
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.33.7",
|
||||
"version": "4.33.8",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user