Skip to content

Commit

Permalink
Remove invokeLater
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Aug 7, 2024
1 parent bbcfb10 commit ff72fe1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ internal class SwingInteropContainer(
root.repaint()
}

override fun scheduleUpdate(action: () -> Unit) = SwingUtilities.invokeLater {
override fun scheduleUpdate(action: () -> Unit) {
// Swing doesn't need to delay the action. Just execute it synchronously.
action()
}

Expand Down

0 comments on commit ff72fe1

Please sign in to comment.