app: set first-time-run
to true
instead of false
This commit is contained in:
parent
e88dd25bab
commit
560f36e6c8
1 changed files with 3 additions and 5 deletions
|
@ -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({
|
||||
|
@ -159,7 +157,7 @@ app.on('ready', () => {
|
|||
// 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 })
|
||||
|
|
Loading…
Reference in a new issue