Improve code quality and thread safety (#844)

- Format Go files (gofmt) for backend/windows/notify*.go
- Add thread safety to Stopwatch with sync.Mutex
- Add comprehensive unit tests for Stopwatch with race detection
- Add godoc comments to ImageCache public APIs
- Improve IPC documentation with platform-specific socket path details
- Document portable mode TODO for future enhancement
This commit is contained in:
Gianluca Boiano
2026-02-03 11:39:47 -08:00
committed by GitHub
parent 5e5210adb3
commit 2e33b81914
6 changed files with 324 additions and 90 deletions
+10 -10
View File
@@ -1,10 +1,10 @@
//go:build !windows
package windows
import "fyne.io/fyne/v2"
func SendNotification(n *fyne.Notification, iconFilePath string) {
fyne.LogError("windows.SendNotification should not be invoked on non-Windows platform", nil)
fyne.CurrentApp().SendNotification(n)
}
//go:build !windows
package windows
import "fyne.io/fyne/v2"
func SendNotification(n *fyne.Notification, iconFilePath string) {
fyne.LogError("windows.SendNotification should not be invoked on non-Windows platform", nil)
fyne.CurrentApp().SendNotification(n)
}