set app id, bump to 1.0.1
This commit is contained in:
parent
54c626df91
commit
a96c061fa8
@ -17,7 +17,7 @@
|
||||
traygent = with pkgs;
|
||||
buildGo121Module rec {
|
||||
pname = "traygent";
|
||||
version = "v1.0.0";
|
||||
version = "v1.0.1";
|
||||
src = ./.;
|
||||
|
||||
vendorHash =
|
||||
|
11
main.go
11
main.go
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user