disable navigation buttons on startup until server connected

This commit is contained in:
Drew Weymouth
2023-02-26 09:42:15 -08:00
parent d01ac697bd
commit 34f1309828
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -127,7 +127,9 @@ func (b *BrowsingPane) EnableNavigationButtons() {
func (b *BrowsingPane) ActivateNavigationButton(num int) {
if num < len(b.navBtnsContainer.Objects) {
btn := b.navBtnsContainer.Objects[num].(*widget.Button)
btn.OnTapped()
if !btn.Disabled() {
btn.OnTapped()
}
}
}