|
@@ -30,7 +30,6 @@ import com.dmdirc.addons.ui_swing.components.text.TextLabel;
|
30
|
30
|
import com.dmdirc.config.prefs.PreferencesCategory;
|
31
|
31
|
import com.dmdirc.config.prefs.PreferencesSetting;
|
32
|
32
|
import com.dmdirc.config.prefs.PreferencesType;
|
33
|
|
-import com.dmdirc.util.LogUtils;
|
34
|
33
|
|
35
|
34
|
import java.awt.Component;
|
36
|
35
|
import java.awt.MenuContainer;
|
|
@@ -48,6 +47,8 @@ import net.miginfocom.swing.MigLayout;
|
48
|
47
|
import org.slf4j.Logger;
|
49
|
48
|
import org.slf4j.LoggerFactory;
|
50
|
49
|
|
|
50
|
+import static com.dmdirc.util.LogUtils.USER_ERROR;
|
|
51
|
+
|
51
|
52
|
/**
|
52
|
53
|
* Loads a preferences panel for a specified preferences category in the background.
|
53
|
54
|
*/
|
|
@@ -112,7 +113,7 @@ public class PrefsCategoryLoader extends LoggingSwingWorker<JPanel, Object> {
|
112
|
113
|
} catch (InterruptedException ex) {
|
113
|
114
|
panel = errorCategory;
|
114
|
115
|
} catch (ExecutionException ex) {
|
115
|
|
- LOG.warn(LogUtils.USER_ERROR, "Error loading prefs panel", ex);
|
|
116
|
+ LOG.warn(USER_ERROR, "Error loading prefs panel", ex);
|
116
|
117
|
panel = errorCategory;
|
117
|
118
|
}
|
118
|
119
|
return panel;
|