Make bottombar optional and enabled by default
MODIFY
config/config.go
config/config.go
@@ -53,6 +53,7 @@ var (
DontShowUpdateNotificationFor: "",
ShowUpdateNotifications: true,
IndicateChannelAccessRestriction: false,
+ ShowBottomBar: true,
}
)
@@ -123,6 +124,9 @@ type Config struct {
// Show a padlock prefix of the channels that have access restriction
IndicateChannelAccessRestriction bool
+ // ShowBottomBar decides whether an informational line is shown at the
+ // bottom of cordless or not.
+ ShowBottomBar bool
}
// Account has a name and a token. The name is just for the users recognition.

MODIFY
ui/window.go
ui/window.go
@@ -837,6 +837,7 @@ func NewWindow(doRestart chan bool, app *tview.Application, session *discordgo.S
window.rootContainer.AddItem(window.dialogReplacement, 2, 0, false)
+ if config.Current.ShowBottomBar {
bottomBar := tview.NewFlex().SetDirection(tview.FlexColumn)
bottomBar.SetBackgroundColor(config.GetTheme().PrimitiveBackgroundColor)
@@ -852,6 +853,7 @@ func NewWindow(doRestart chan bool, app *tview.Application, session *discordgo.S
bottomBar.AddItem(shortcutInfo, runewidth.StringWidth(shortcutInfoText), 0, false)
window.rootContainer.AddItem(bottomBar, 1, 0, false)
+ }
app.SetRoot(window.rootContainer, true)
window.currentContainer = window.rootContainer

Make bottombar optional and enabled by default