MCPcopy
hub / github.com/ZToolsCenter/ZTools / saveLastMatchState

Method saveLastMatchState

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

* 保存上次匹配状态到数据库

()

Source from the content-addressed store, hash-verified

1021 * 保存上次匹配状态到数据库
1022 */
1023 private saveLastMatchState(): void {
1024 try {
1025 if (this.lastMatchState) {
1026 databaseAPI.dbPut('last-match-state', this.lastMatchState)
1027 console.log('[Commands] 保存上次匹配状态到数据库')
1028 }
1029 } catch (error) {
1030 console.error('[Commands] 保存上次匹配状态失败:', error)
1031 }
1032 }
1033
1034 /**
1035 * 获取上次匹配状态

Callers 1

launchMethod · 0.95

Calls 1

dbPutMethod · 0.45

Tested by

no test coverage detected