Commit 560f36e6 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

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

parent e88dd25b
...@@ -9,7 +9,6 @@ import { analytics, id } from './telemetry' ...@@ -9,7 +9,6 @@ import { analytics, id } from './telemetry'
require('@electron/remote/main').initialize() require('@electron/remote/main').initialize()
const store = new Store() const store = new Store()
let tray: Tray | null = null let tray: Tray | null = null
let welcomeWindow: BrowserWindow | null = null let welcomeWindow: BrowserWindow | null = null
...@@ -33,7 +32,6 @@ if (!SingleInstanceLock) { ...@@ -33,7 +32,6 @@ if (!SingleInstanceLock) {
app.quit() app.quit()
} }
function firstRunWindow() { function firstRunWindow() {
// Create the browser window. // Create the browser window.
welcomeWindow = new BrowserWindow({ welcomeWindow = new BrowserWindow({
...@@ -159,7 +157,7 @@ app.on('ready', () => { ...@@ -159,7 +157,7 @@ app.on('ready', () => {
// This is the first run // This is the first run
app.setLoginItemSettings({ openAtLogin: true }) app.setLoginItemSettings({ openAtLogin: true })
firstRunWindow() firstRunWindow()
store.set('first-time-run', false) store.set('first-time-run', true)
} else { } else {
// The app has been run before // The app has been run before
app.setLoginItemSettings({ openAtLogin: app.getLoginItemSettings().openAtLogin }) app.setLoginItemSettings({ openAtLogin: app.getLoginItemSettings().openAtLogin })
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment