Skip to content

Commit

Permalink
disable servers button if slist is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hypatia2 committed Aug 24, 2015
1 parent 259ec8b commit d8fe54e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fruho/main.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,10 @@ proc slist-button-stand {} {
if {[is-addprovider-tab-selected]} {
return disabled
}
set slist [current-slist [model now] [current-profile]]
if {$slist eq ""} {
return disabled
}
return normal
}

Expand Down

0 comments on commit d8fe54e

Please sign in to comment.