Config view: rename Test connections to Test; center Save and Revert

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 00:01:17 +02:00
co-authored by Claude Sonnet 5.5
parent 26e1679e4e
commit b40ee8b61c
5 changed files with 8 additions and 7 deletions
+3 -2
View File
@@ -103,7 +103,7 @@ type settingsView struct {
root *tview.Flex
form *tview.Form // every field, one below the other, with section headings
testItem *formAction // the Test connections button, below the service settings
testItem *formAction // the Test button, below the service settings
actions *tview.Form // the buttons below it
groups []*tview.Form // keyboard order: the fields, then the buttons
status *tview.TextView
@@ -160,7 +160,7 @@ func newSettingsView(app *App) *settingsView {
service("Sonarr", "sonarr", true)
service("SABnzbd", "sabnzbd", false)
// Right below the connection settings it checks.
v.testItem = newFormAction("Test connections", v.test)
v.testItem = newFormAction("Test", v.test)
f.AddFormItem(v.testItem)
f.AddFormItem(newFormHeading("Interface"))
@@ -181,6 +181,7 @@ func newSettingsView(app *App) *settingsView {
v.actions = tview.NewForm().SetItemPadding(0)
v.actions.SetBorder(true).SetTitle(" Actions ")
v.actions.SetBorderPadding(0, 0, 1, 1)
v.actions.SetButtonsAlign(tview.AlignCenter)
v.actions.AddButton("Save", v.save)
v.actions.AddButton("Revert", v.revert)