Skip to content

Commit 42ce0b4

Browse files
committed
feat: show dock icon when preference window shows
1 parent 30630d7 commit 42ce0b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mos/Managers/WindowManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ extension WindowManager {
4343
windowController.window?.makeKeyAndOrderFront(self)
4444
NSApp.activate(ignoringOtherApps: true)
4545
// 显示 Dock 图标
46-
// Utils.showDockIcon()
46+
Utils.showDockIcon()
4747
}
4848
// 关闭对应 Identifier 的窗口
4949
func hideWindow(withIdentifier identifier: String, destroy: Bool = false) {
5050
// 隐藏 Dock 图标
51-
// Utils.hideDockIcon()
51+
Utils.hideDockIcon()
5252
// 销毁实例
5353
if destroy {
5454
refs.removeValue(forKey: identifier)

0 commit comments

Comments
 (0)