Add window pinning

This commit is contained in:
2025-05-12 19:59:40 +08:00
parent 0710f0c9b0
commit e0b9a376cb
11 changed files with 1183 additions and 138 deletions

View File

@@ -128,6 +128,11 @@ export class EditorConfig {
*/
"language": LanguageType;
/**
* 窗口是否置顶
*/
"alwaysOnTop": boolean;
/** Creates a new EditorConfig instance. */
constructor($$source: Partial<EditorConfig> = {}) {
if (!("fontSize" in $$source)) {
@@ -145,6 +150,9 @@ export class EditorConfig {
if (!("language" in $$source)) {
this["language"] = ("" as LanguageType);
}
if (!("alwaysOnTop" in $$source)) {
this["alwaysOnTop"] = false;
}
Object.assign(this, $$source);
}