(enabled: boolean, refreshHighlights = false)
| 91 | } |
| 92 | |
| 93 | async setMainWindowMode(enabled: boolean, refreshHighlights = false): Promise<void> { |
| 94 | this.state.isDraggedToMainView = enabled; |
| 95 | this.setupResult?.fileListManager.invalidateCache(); |
| 96 | await this.updateViewLayout(); |
| 97 | |
| 98 | if (refreshHighlights) { |
| 99 | void this.setupResult?.highlightListController.updateHighlights().catch(error => { |
| 100 | console.error('[HiNoteView] Failed to refresh highlights after mode switch:', error); |
| 101 | }); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | async onOpen() { |
| 106 | this.setupResult = await setupHiNoteView({ |
no test coverage detected