MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / hideWindow

Method hideWindow

src/main/managers/windowManager.ts:886–899  ·  view source on GitHub ↗

* 隐藏窗口

(_restoreFocus: boolean = true)

Source from the content-addressed store, hash-verified

884 * 隐藏窗口
885 */
886 public hideWindow(_restoreFocus: boolean = true): void {
887 console.log('[Window] 隐藏窗口', _restoreFocus)
888
889 // 记录当前的焦点状态(在隐藏之前)
890 this.recordFocusState()
891
892 this.mainWindow?.hide()
893 if (_restoreFocus) {
894 this.restorePreviousWindow()
895 }
896
897 // 启动自动返回搜索定时器
898 this.startAutoBackToSearchTimer()
899 }
900
901 public withBlurHideSuppressed<T>(
902 callback: () => PromiseLike<T>,

Callers 3

createWindowMethod · 0.95

Calls 4

recordFocusStateMethod · 0.95
restorePreviousWindowMethod · 0.95
hideMethod · 0.80

Tested by

no test coverage detected