mirror of
https://github.com/Mikescher/kpsync.git
synced 2025-10-24 21:55:08 +02:00
non-functional wip state
This commit is contained in:
20
app/tray.go
Normal file
20
app/tray.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"fyne.io/systray"
|
||||
"mikescher.com/kpsync/assets"
|
||||
)
|
||||
|
||||
func (app *Application) initTray() {
|
||||
|
||||
trayOnReady := func() {
|
||||
|
||||
systray.SetIcon(assets.IconInit)
|
||||
systray.SetTitle("KeepassXC Sync")
|
||||
systray.SetTooltip("Initializing...")
|
||||
|
||||
app.trayReady = true
|
||||
}
|
||||
|
||||
systray.Run(trayOnReady, nil)
|
||||
}
|
||||
Reference in New Issue
Block a user