Browse Source

Issue 495: Configure plugins menu should be disabled if there are no plugins to be configure.

git-svn-id: http://svn.dmdirc.com/trunk@2489 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5.5
Gregory Holmes 16 years ago
parent
commit
78979fc867
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/com/dmdirc/ui/swing/MainFrame.java

+ 4
- 0
src/com/dmdirc/ui/swing/MainFrame.java View File

@@ -788,6 +788,10 @@ public final class MainFrame extends JFrame implements WindowListener,
788 788
                 pluginList.put(mi, plugin.getClass().getName());
789 789
             }
790 790
         }
791
+        
792
+        if (menu.getItemCount() == 0) {
793
+            menu.setEnabled(false);
794
+        }
791 795
     }
792 796
 
793 797
     /**

Loading…
Cancel
Save