MCPcopy Create free account
hub / github.com/CatMuse/HiNote / setMainWindowMode

Method setMainWindowMode

src/views/hinote/HiNoteView.ts:93–103  ·  view source on GitHub ↗
(enabled: boolean, refreshHighlights = false)

Source from the content-addressed store, hash-verified

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({

Callers 2

updateViewToMainModeMethod · 0.80

Calls 3

updateViewLayoutMethod · 0.95
updateHighlightsMethod · 0.80
invalidateCacheMethod · 0.65

Tested by

no test coverage detected