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

Method loadLocalAppSearchSetting

src/main/api/renderer/commands.ts:134–144  ·  view source on GitHub ↗

* 加载本地应用搜索设置

()

Source from the content-addressed store, hash-verified

132 * 加载本地应用搜索设置
133 */
134 private loadLocalAppSearchSetting(): void {
135 try {
136 const data = databaseAPI.dbGet('settings-general')
137 if (data && typeof data.localAppSearch === 'boolean') {
138 this.isLocalAppSearchEnabled = data.localAppSearch
139 }
140 console.log('[Commands] 加载本地应用搜索设置:', this.isLocalAppSearchEnabled)
141 } catch (error) {
142 console.error('[Commands] 加载本地应用搜索设置失败:', error)
143 }
144 }
145
146 /**
147 * 获取使用统计

Callers 1

initMethod · 0.95

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected