mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 02:20:10 +08:00
fix: fix portable dir setup time (#6022)
This commit is contained in:
parent
f18c81b7b8
commit
e9d6b9f441
@ -40,6 +40,9 @@ if (!app.requestSingleInstanceLock()) {
|
|||||||
app.quit()
|
app.quit()
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
} else {
|
} else {
|
||||||
|
// Portable dir must be setup before app ready
|
||||||
|
setUserDataDir()
|
||||||
|
|
||||||
// This method will be called when Electron has finished
|
// This method will be called when Electron has finished
|
||||||
// initialization and is ready to create browser windows.
|
// initialization and is ready to create browser windows.
|
||||||
// Some APIs can only be used after this event occurs.
|
// Some APIs can only be used after this event occurs.
|
||||||
@ -72,8 +75,6 @@ if (!app.requestSingleInstanceLock()) {
|
|||||||
|
|
||||||
replaceDevtoolsFont(mainWindow)
|
replaceDevtoolsFont(mainWindow)
|
||||||
|
|
||||||
setUserDataDir()
|
|
||||||
|
|
||||||
// Setup deep link for AppImage on Linux
|
// Setup deep link for AppImage on Linux
|
||||||
await setupAppImageDeepLink()
|
await setupAppImageDeepLink()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user