Use invokeLater for the swing theme installer to avoid errors

Also enable logging for it
This commit is contained in:
Syer10
2021-05-02 10:16:25 -04:00
parent d06f0a033f
commit a1f96067e4

View File

@@ -69,7 +69,10 @@ fun main() {
ThemeMode.Light -> IntelliJTheme()
ThemeMode.Dark -> DarculaTheme()
}
LafManager.install(theme)
LafManager.enableLogging(BuildConfig.DEBUG)
SwingUtilities.invokeLater {
LafManager.install(theme)
}
}
.launchIn(GlobalScope)