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
6fbb3800
Commit
6fbb3800
authored
Aug 02, 2023
by
Jeffrey Morgan
Browse files
hide dock icon if window closes
parent
8f8b6288
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/src/app.tsx
app/src/app.tsx
+0
-5
app/src/index.ts
app/src/index.ts
+5
-0
No files found.
app/src/app.tsx
View file @
6fbb3800
...
@@ -107,11 +107,6 @@ export default function () {
...
@@ -107,11 +107,6 @@ export default function () {
<
button
<
button
onClick
=
{
()
=>
{
onClick
=
{
()
=>
{
store
.
set
(
'
first-time-run
'
,
true
)
store
.
set
(
'
first-time-run
'
,
true
)
if
(
process
.
platform
===
'
darwin
'
)
{
app
.
dock
.
hide
()
}
window
.
close
()
window
.
close
()
}
}
}
}
className
=
'no-drag rounded-dm mx-auto w-[60%] rounded-md bg-black px-4 py-2 text-sm text-white hover:brightness-110'
className
=
'no-drag rounded-dm mx-auto w-[60%] rounded-md bg-black px-4 py-2 text-sm text-white hover:brightness-110'
...
...
app/src/index.ts
View file @
6fbb3800
...
@@ -78,6 +78,11 @@ function firstRunWindow() {
...
@@ -78,6 +78,11 @@ function firstRunWindow() {
welcomeWindow
.
loadURL
(
MAIN_WINDOW_WEBPACK_ENTRY
)
welcomeWindow
.
loadURL
(
MAIN_WINDOW_WEBPACK_ENTRY
)
welcomeWindow
.
on
(
'
ready-to-show
'
,
()
=>
welcomeWindow
.
show
())
welcomeWindow
.
on
(
'
ready-to-show
'
,
()
=>
welcomeWindow
.
show
())
welcomeWindow
.
on
(
'
closed
'
,
()
=>
{
if
(
process
.
platform
===
'
darwin
'
)
{
app
.
dock
.
hide
()
}
})
}
}
let
tray
:
Tray
|
null
=
null
let
tray
:
Tray
|
null
=
null
...
...
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