diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index aaff9f46..9f7e78ea 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -147,7 +147,7 @@ "height": 800, "center": true, "decorations": true, - "closable": false + "closable": true } ] } diff --git a/src/utils/TGClient.ts b/src/utils/TGClient.ts index 141036b9..ce416fcc 100644 --- a/src/utils/TGClient.ts +++ b/src/utils/TGClient.ts @@ -429,8 +429,7 @@ class TGClient { async closePage(): Promise { this.route.pop(); if (this.route.length === 0) { - await this.open(""); - await this.window?.hide(); + await this.window?.close(); return; } const url = this.route[this.route.length - 1];