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

Method loadLastMatchState

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

* 从数据库加载上次匹配状态

()

Source from the content-addressed store, hash-verified

1006 * 从数据库加载上次匹配状态
1007 */
1008 private loadLastMatchState(): void {
1009 try {
1010 const state = databaseAPI.dbGet('last-match-state')
1011 if (state) {
1012 this.lastMatchState = state
1013 console.log('[Commands] 加载上次匹配状态:', state)
1014 }
1015 } catch (error) {
1016 console.log('[Commands] 加载上次匹配状态失败:', error)
1017 }
1018 }
1019
1020 /**
1021 * 保存上次匹配状态到数据库

Callers 1

initMethod · 0.95

Calls 1

dbGetMethod · 0.45

Tested by

no test coverage detected