Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
560f36e6
Commit
560f36e6
authored
Jul 14, 2023
by
Jeffrey Morgan
Browse files
app: set `first-time-run` to `true` instead of `false`
parent
e88dd25b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/src/index.ts
app/src/index.ts
+3
-5
No files found.
app/src/index.ts
View file @
560f36e6
...
@@ -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
({
...
@@ -60,7 +58,7 @@ function firstRunWindow() {
...
@@ -60,7 +58,7 @@ function firstRunWindow() {
if
(
process
.
platform
===
'
darwin
'
)
{
if
(
process
.
platform
===
'
darwin
'
)
{
app
.
dock
.
hide
()
app
.
dock
.
hide
()
}
}
}
}
function
createSystemtray
()
{
function
createSystemtray
()
{
...
@@ -154,12 +152,12 @@ app.on('ready', () => {
...
@@ -154,12 +152,12 @@ app.on('ready', () => {
createSystemtray
()
createSystemtray
()
server
()
server
()
if
(
!
store
.
has
(
'
first-time-run
'
))
{
if
(
!
store
.
has
(
'
first-time-run
'
))
{
// 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
'
,
fals
e
)
store
.
set
(
'
first-time-run
'
,
tru
e
)
}
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
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment