mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AppUIExecutorImpl: fix typo in modality check
This commit is contained in:
+3
-2
@@ -32,10 +32,11 @@ internal class AppUIExecutorImpl private constructor(private val myModality: Mod
|
||||
|
||||
constructor(modality: ModalityState) : this(modality, arrayOf(/* fallback */ SimpleConstraintDispatcher(object : SimpleContextConstraint {
|
||||
override val isCorrectContext: Boolean
|
||||
get() = ApplicationManager.getApplication().isDispatchThread || ModalityState.current().dominates(modality)
|
||||
get() = ApplicationManager.getApplication().isDispatchThread && !ModalityState.current().dominates(modality)
|
||||
|
||||
override fun schedule(runnable: Runnable): Unit =
|
||||
override fun schedule(runnable: Runnable) {
|
||||
ApplicationManager.getApplication().invokeLater(runnable, modality)
|
||||
}
|
||||
|
||||
override fun toString() = "onUiThread($modality)"
|
||||
})), emptySet<Expiration>())
|
||||
|
||||
Reference in New Issue
Block a user