chore: release 0.11.2 with window persistence, appID update, and doc fixes
- Persist window size on quit/close and restore it on next launch - Update appID from ru.mixdep.gosentry.desktop to ru.mixeme.gosentry.desktop - Use markdown headers for Build sections in DEVELOPMENT.md - Remove stale go.yaml.in/yaml/v4 dependency from DEVELOPMENT.md Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,14 @@ func configureSystemTray(a fyne.App, w fyne.Window) {
|
||||
// Russian system) because it only recognizes an existing quit by matching the
|
||||
// localized label — which our literal "Quit" does not. Setting IsQuit makes
|
||||
// Fyne reuse this item instead of adding a duplicate, regardless of locale.
|
||||
saveWindowSize := func() {
|
||||
size := w.Canvas().Size()
|
||||
prefs := a.Preferences()
|
||||
prefs.SetFloat("window.width", float64(size.Width))
|
||||
prefs.SetFloat("window.height", float64(size.Height))
|
||||
}
|
||||
quit := fyne.NewMenuItem("Quit", func() {
|
||||
saveWindowSize()
|
||||
a.Quit()
|
||||
})
|
||||
quit.IsQuit = true
|
||||
@@ -51,6 +58,7 @@ func configureSystemTray(a fyne.App, w fyne.Window) {
|
||||
// Closing hides the window instead of quitting because scheduler tools are
|
||||
// expected to keep working in the background. The explicit Quit tray item
|
||||
// remains the way to stop the process.
|
||||
saveWindowSize()
|
||||
w.Hide()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user