debloat the ui a lil

This commit is contained in:
2026-03-20 19:33:02 +00:00
parent 2640bf00ab
commit c71c83ef88
2 changed files with 5 additions and 8 deletions
+5 -7
View File
@@ -126,14 +126,12 @@ func (a *App) Run() error {
func (a *App) chooseStartupWorkflow() (string, error) {
return a.chooseMenu(
"Choose A Workflow",
"Server shares and client mounts in one place.",
"",
[]string{
"Use the server tools to edit smb.conf and manage share accounts.",
"Use the client tools to add or maintain CIFS mounts in /etc/fstab.",
},
[]menuOption{
{Key: "s", Value: "server", Label: "Server shares"},
{Key: "c", Value: "client", Label: "Client mounts"},
{Key: "s", Value: "server", Label: "configure server shares"},
{Key: "c", Value: "client", Label: "configure client mounts"},
{Key: "q", Value: "quit", Label: "Quit"},
},
)
@@ -502,7 +500,7 @@ func (a *App) handleMissingConfig() (*Document, error) {
a.println("You may be asked for your administrator password.")
a.flush()
install, err := a.confirm("Install Samba server now", true)
install, err := a.confirm("Samba was not detected on this system. \nInstall Samba server now?", true)
if err != nil {
return nil, err
}
@@ -1150,7 +1148,7 @@ func (a *App) confirm(label string, defaultYes bool) (bool, error) {
options[0], options[1] = options[1], options[0]
}
answer, err := a.chooseMenu("Confirm Action", label, nil, options)
answer, err := a.chooseMenu("", label, nil, options)
if err != nil {
return false, err
}