feat(desktop): add OPENCODE_TEST_ONBOARDING env (#25968)
This commit is contained in:
parent
2f05676e04
commit
efd8024430
3 changed files with 38 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import Store from "electron-store"
|
||||
import { app } from "electron"
|
||||
|
||||
import { SETTINGS_STORE } from "./constants"
|
||||
|
||||
|
|
@ -11,7 +12,12 @@ const cache = new Map<string, Store>()
|
|||
export function getStore(name = SETTINGS_STORE) {
|
||||
const cached = cache.get(name)
|
||||
if (cached) return cached
|
||||
const next = new Store({ name, fileExtension: "", accessPropertiesByDotNotation: false })
|
||||
const next = new Store({
|
||||
name,
|
||||
cwd: app.getPath("userData"),
|
||||
fileExtension: "",
|
||||
accessPropertiesByDotNotation: false,
|
||||
})
|
||||
cache.set(name, next)
|
||||
return next
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue