ui: remember last used editor theme

This commit is contained in:
undefined committed 2022-03-12 21:48:00 +08:00
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); if (suggestWidget?._setDetailsVisible) suggestWidget._setDetailsVisible(true);
handlePasteEvent(editor); handlePasteEvent(editor);
} }
return loadThemePromise; if (!customOptions.theme) return null;
return loadThemePromise.then(() => editor.updateOptions({ theme: customOptions.theme }));
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.33.7", "version": "4.33.8",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",