mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
hide dock icon if window closes
This commit is contained in:
parent
8f8b6288ac
commit
6fbb380076
@ -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'
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user