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

Function savePreferences

electron/main.js:488–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

486
487// 保存用户偏好
488function savePreferences() {
489 try {
490 fs.writeFileSync(prefsPath, JSON.stringify(userPreferences, null, 2))
491 } catch (err) {
492 console.error('Failed to save preferences:', err)
493 }
494}
495
496function getRecentProjectsForMenu() {
497 try {

Callers 2

createWindowFunction · 0.70
main.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected