]> khamidou — GitHub mirrors - prguy.git/commitdiff
Also disable status indicator
authorKarim Hamidou <karim@khamidou.com>
Fri, 5 Jul 2024 00:32:18 +0000 (17:32 -0700)
committerKarim Hamidou <karim@khamidou.com>
Fri, 5 Jul 2024 00:32:18 +0000 (17:32 -0700)
cmd/prguy/main.go

index da648136d45477a21f9e4df995f1a1b48420f345..441458e1b0f124bb004408a624c060cbbacc1fc6 100644 (file)
@@ -62,7 +62,8 @@ func setupMenu(ctx context.Context, cancel context.CancelFunc) {
 
                        cfg.load()
                        systray.ResetMenu()
-                       systray.AddMenuItem("Fetching PRs from Github...", "")
+                       statusItem := systray.AddMenuItem("Fetching PRs from Github...", "")
+                       statusItem.Disable()
 
                        fmt.Println("Fetching PRs...")
                        myPRs, otherPRs, err := listUserPRs(cfg.OAuthToken)