set app id, bump to 1.0.1

This commit is contained in:
Aaron Bieber 2024-01-16 19:14:57 -07:00
parent 54c626df91
commit a96c061fa8
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

View File

@ -17,7 +17,7 @@
traygent = with pkgs;
buildGo121Module rec {
pname = "traygent";
version = "v1.0.0";
version = "v1.0.1";
src = ./.;
vendorHash =

11
main.go
View File

@ -53,10 +53,15 @@ func main() {
sigResp: make(chan bool),
}
app := app.NewWithID("traygent")
trayApp := app.NewWithID("com.bolddaemon.traygent")
app.SetMetadata(fyne.AppMetadata{
Name: "traygent",
})
var desk desktop.App
var ok bool
if desk, ok = app.(desktop.App); ok {
if desk, ok = trayApp.(desktop.App); ok {
m := fyne.NewMenu("traygent",
fyne.NewMenuItem("Remove Keys", func() {
tagent.RemoveAll()
@ -120,5 +125,5 @@ func main() {
}
}()
app.Run()
trayApp.Run()
}