MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / loadPreferences

Function loadPreferences

electron/main.js:476–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474
475// 加载用户偏好
476function loadPreferences() {
477 try {
478 if (fs.existsSync(prefsPath)) {
479 const data = fs.readFileSync(prefsPath, 'utf-8')
480 userPreferences = { ...userPreferences, ...JSON.parse(data) }
481 }
482 } catch (err) {
483 console.error('Failed to load preferences:', err)
484 }
485}
486
487// 保存用户偏好
488function savePreferences() {

Callers 1

createWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected