Skip to content

Commit

Permalink
fix: Mac OS running issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayagikei committed Jun 25, 2023
1 parent bc48153 commit 9a40203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jvmMain/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,10 @@ fun main() {
var lastError: Throwable? by mutableStateOf(null)

application(exitProcessOnExit = false) {
// To fix the window crash issue: https://github.com/JetBrains/compose-jb/issues/610
System.setProperty("skiko.renderApi", "OPENGL")
if(System.getProperty("os.name").startsWith("Windows")) {
// To fix the window crash issue: https://github.com/JetBrains/compose-jb/issues/610
System.setProperty("skiko.renderApi", "OPENGL")
}
// get native dialog UI
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName())

Expand Down

0 comments on commit 9a40203

Please sign in to comment.