mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
2b62c9612d
commit
eca0196bea
3 changed files with 16 additions and 4 deletions
|
|
@ -36,6 +36,7 @@ import {focusByOffset, getSelectionOffset} from "../protyle/util/selection";
|
|||
import {Custom} from "./dock/Custom";
|
||||
import {App} from "../index";
|
||||
import {unicode2Emoji} from "../emoji";
|
||||
import {closeWindow} from "../window/closeWin";
|
||||
|
||||
export class Wnd {
|
||||
private app: App;
|
||||
|
|
@ -775,7 +776,7 @@ export class Wnd {
|
|||
if (!wnd) {
|
||||
/// #if !BROWSER
|
||||
if (isWindow()) {
|
||||
getCurrentWindow().destroy();
|
||||
closeWindow(this.app);
|
||||
return;
|
||||
}
|
||||
/// #endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue