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 changed files with 6 additions and 2 deletions
  1. 2
    0
      src/com/dmdirc/ui/themes/Theme.java
  2. 4
    2
      src/com/dmdirc/ui/themes/ThemeManager.java

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

@@ -133,6 +133,8 @@ public class Theme implements Comparable<Theme> {
133 133
             return;
134 134
         }
135 135
         
136
+        enabled = false;
137
+        
136 138
         IdentityManager.removeIdentity(identity);
137 139
     }
138 140
 

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

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

Loading…
Cancel
Save