Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

app: set `first-time-run` to `true` instead of `false`

Jeffrey Morgan560f36e6c8e3
diff --git a/app/src/index.ts b/app/src/index.ts
index 1adf0130b..c5d78d274 100644
--- a/app/src/index.ts
+++ b/app/src/index.ts
@@ -9,7 +9,6 @@ import { analytics, id } from './telemetry'
require('@electron/remote/main').initialize()
-
const store = new Store()
let tray: Tray | null = null
let welcomeWindow: BrowserWindow | null = null
@@ -33,7 +32,6 @@ if (!SingleInstanceLock) {
app.quit()
}
-
function firstRunWindow() {
// Create the browser window.
welcomeWindow = new BrowserWindow({
@@ -60,7 +58,7 @@ function firstRunWindow() {
if (process.platform === 'darwin') {
app.dock.hide()
- }
+ }
}
function createSystemtray() {
@@ -154,12 +152,12 @@ app.on('ready', () => {
createSystemtray()
server()
-
+
if (!store.has('first-time-run')) {
// This is the first run
app.setLoginItemSettings({ openAtLogin: true })
firstRunWindow()
- store.set('first-time-run', false)
+ store.set('first-time-run', true)
} else {
// The app has been run before
app.setLoginItemSettings({ openAtLogin: app.getLoginItemSettings().openAtLogin })