mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 06:20:53 +03:00
IntelliJ Themes: avoid double setting LaFs
This commit is contained in:
@@ -177,6 +177,9 @@ public class IJThemesPanel
|
|||||||
|
|
||||||
// change look and feel
|
// change look and feel
|
||||||
if( themeInfo.lafClassName != null ) {
|
if( themeInfo.lafClassName != null ) {
|
||||||
|
if( themeInfo.lafClassName.equals( UIManager.getLookAndFeel().getClass().getName() ) )
|
||||||
|
return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
UIManager.setLookAndFeel( themeInfo.lafClassName );
|
UIManager.setLookAndFeel( themeInfo.lafClassName );
|
||||||
} catch( Exception ex ) {
|
} catch( Exception ex ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user