mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复最小化后再隐藏窗口时,托盘菜单的显示主界面功能异常的问题
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
- 修复 MacOS 平台在 Finder 打开文件或目录时应用卡死的问题(#1684)
|
||||
- 修复下载模块在数据写入速度较慢的情况下出现任务及文件异常的问题
|
||||
- 修复临时列表变更会意外触发同步的问题
|
||||
- 修复最小化后再隐藏窗口时,托盘菜单的显示主界面功能异常的问题
|
||||
|
||||
### 其他
|
||||
|
||||
|
||||
@@ -165,26 +165,17 @@ export const toggleHide = () => {
|
||||
}
|
||||
export const toggleMinimize = () => {
|
||||
if (!browserWindow) return
|
||||
if (browserWindow.isMinimized()) {
|
||||
if (!browserWindow.isVisible()) {
|
||||
browserWindow.show()
|
||||
}
|
||||
browserWindow.restore()
|
||||
browserWindow.focus()
|
||||
} else {
|
||||
browserWindow.minimize()
|
||||
}
|
||||
if (browserWindow.isVisible()) {
|
||||
if (browserWindow.isMinimized()) browserWindow.restore()
|
||||
else browserWindow.minimize()
|
||||
} else browserWindow.show()
|
||||
}
|
||||
export const showWindow = () => {
|
||||
if (!browserWindow) return
|
||||
if (browserWindow.isMinimized()) {
|
||||
browserWindow.restore()
|
||||
}
|
||||
if (browserWindow.isVisible()) {
|
||||
browserWindow.focus()
|
||||
} else {
|
||||
browserWindow.show()
|
||||
}
|
||||
if (browserWindow.isMinimized()) browserWindow.restore()
|
||||
else browserWindow.focus()
|
||||
} else browserWindow.show()
|
||||
}
|
||||
export const hideWindow = () => {
|
||||
if (!browserWindow) return
|
||||
|
||||
Reference in New Issue
Block a user