Browse Source

Disable plugins menubar item.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
6a730b8268
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/app/MenuBar.cpp

+ 7
- 0
src/app/MenuBar.cpp View File

@@ -581,6 +581,13 @@ struct PluginsMenu : ui::Menu {
void refresh() {
clearChildren();

{
ui::MenuLabel *disabledLable = new ui::MenuLabel;
disabledLable->text = "Server not yet available";
addChild(disabledLable);
return;
}

if (plugin::isLoggedIn()) {
ManageItem *manageItem = new ManageItem;
manageItem->text = "Manage";


Loading…
Cancel
Save