Browse Source

Theme list updates when the preferences dialog is opened

Themes now set their enabled boolean when being disabled
Fixes issue 1140, fixes issue 1139

git-svn-id: http://svn.dmdirc.com/trunk@3898 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
850bad60bb

+ 2
- 0
src/com/dmdirc/ui/themes/Theme.java View File

133
             return;
133
             return;
134
         }
134
         }
135
         
135
         
136
+        enabled = false;
137
+        
136
         IdentityManager.removeIdentity(identity);
138
         IdentityManager.removeIdentity(identity);
137
     }
139
     }
138
 
140
 

+ 4
- 2
src/com/dmdirc/ui/themes/ThemeManager.java View File

130
      * @return A list of available themes
130
      * @return A list of available themes
131
      */    
131
      */    
132
     public static Map<String, Theme> getAvailableThemes() {
132
     public static Map<String, Theme> getAvailableThemes() {
133
+        loadThemes();
134
+        
133
         synchronized (THEMES) {
135
         synchronized (THEMES) {
134
             return new HashMap<String, Theme>(THEMES);
136
             return new HashMap<String, Theme>(THEMES);
135
         }
137
         }
142
      */
144
      */
143
     public static String getThemeDirectory() {
145
     public static String getThemeDirectory() {
144
         return THEME_DIR;
146
         return THEME_DIR;
145
-}
146
-    
147
+    }
148
+
147
 }
149
 }

Loading…
Cancel
Save