Feature: 为Linux系统适配桌面图标栏(Tray) (#603)

This commit is contained in:
刘沛源
2020-12-29 09:59:50 +08:00
committed by GitHub
parent 2129f86266
commit 0fe3ade5c3
3 changed files with 201 additions and 140 deletions

View File

@@ -271,7 +271,11 @@ export default class extends Vue {
}
closeWindow () {
const window = BrowserWindow.getFocusedWindow()
window!.close()
if (process.platform === 'linux') {
window!.hide()
} else {
window!.close()
}
}
buildMenu () {
const _this = this