set app id, bump to 1.0.1
This commit is contained in:
parent
54c626df91
commit
a96c061fa8
@ -17,7 +17,7 @@
|
|||||||
traygent = with pkgs;
|
traygent = with pkgs;
|
||||||
buildGo121Module rec {
|
buildGo121Module rec {
|
||||||
pname = "traygent";
|
pname = "traygent";
|
||||||
version = "v1.0.0";
|
version = "v1.0.1";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
vendorHash =
|
vendorHash =
|
||||||
|
11
main.go
11
main.go
@ -53,10 +53,15 @@ func main() {
|
|||||||
sigResp: make(chan bool),
|
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 desk desktop.App
|
||||||
var ok bool
|
var ok bool
|
||||||
if desk, ok = app.(desktop.App); ok {
|
if desk, ok = trayApp.(desktop.App); ok {
|
||||||
m := fyne.NewMenu("traygent",
|
m := fyne.NewMenu("traygent",
|
||||||
fyne.NewMenuItem("Remove Keys", func() {
|
fyne.NewMenuItem("Remove Keys", func() {
|
||||||
tagent.RemoveAll()
|
tagent.RemoveAll()
|
||||||
@ -120,5 +125,5 @@ func main() {
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
app.Run()
|
trayApp.Run()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user