Clean up Settings application block

Remove the duplicated application version row from the Settings Application block now that version details live in About.

Keep the autostart control inline and shorten its checkbox text to Start on login.
This commit is contained in:
mixeme
2026-06-16 07:45:17 +03:00
parent 088f6e77b0
commit 7252d3683c
+2 -3
View File
@@ -733,7 +733,7 @@ func logFileName(path string) string {
} }
func settingsView(w fyne.Window, store *core.Store, jobs *[]job) fyne.CanvasObject { func settingsView(w fyne.Window, store *core.Store, jobs *[]job) fyne.CanvasObject {
startOnLogin := widget.NewCheck("Start PySentry when I sign in", nil) startOnLogin := widget.NewCheck("Start on login", nil)
startOnLogin.SetChecked(store.Config.StartOnLogin) startOnLogin.SetChecked(store.Config.StartOnLogin)
autostartStatus := widget.NewLabel("") autostartStatus := widget.NewLabel("")
refreshAutostartStatus := func() { refreshAutostartStatus := func() {
@@ -826,8 +826,7 @@ func settingsView(w fyne.Window, store *core.Store, jobs *[]job) fyne.CanvasObje
return container.NewPadded(container.NewVBox( return container.NewPadded(container.NewVBox(
widget.NewLabelWithStyle("Application", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}), widget.NewLabelWithStyle("Application", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}),
detailRow("Version", widget.NewLabel(core.Version)), container.NewBorder(nil, nil, nil, autostartStatus, startOnLogin),
detailRow("Start on login", container.NewBorder(nil, nil, nil, autostartStatus, startOnLogin)),
minimizeToTray, minimizeToTray,
notifications, notifications,
widget.NewSeparator(), widget.NewSeparator(),