Skip to content

Commit

Permalink
Use application fatal handler instead of panic
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Sep 2, 2024
1 parent 6ac9018 commit 197f0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/pkg/application/systemtray_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (s *windowsSystemTray) run() {
for retries := range 6 {
if !w32.ShellNotifyIcon(w32.NIM_ADD, &nid) {
if retries == 5 {
panic(syscall.GetLastError())
globalApplication.fatal("Failed to register system tray icon: %v", syscall.GetLastError())
}

time.Sleep(500 * time.Millisecond)
Expand Down

0 comments on commit 197f0e3

Please sign in to comment.