fix!: bad modality states in some EDT calls
This commit is contained in:
parent
78c4751c53
commit
efa2f127a9
3 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ class ZigDebuggerToolchainConfigurableUi : ZigDebuggerUiComponent {
|
|||
row(ZigDebugBundle.message("settings.debugger.toolchain.debugger.label")) {
|
||||
comment = cell(debuggerKindComboBox)
|
||||
.comment("", DEFAULT_COMMENT_WIDTH) {
|
||||
zigCoroutineScope.launchWithEDT(ModalityState.any()) {
|
||||
zigCoroutineScope.launchWithEDT(ModalityState.defaultModalityState()) {
|
||||
withModalProgress(ModalTaskOwner.component(debuggerKindComboBox), "Downloading debugger", TaskCancellation.cancellable()) {
|
||||
downloadDebugger()
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ class ZigDebuggerToolchainConfigurableUi : ZigDebuggerUiComponent {
|
|||
}
|
||||
.applyToComponent {
|
||||
whenItemSelected(null) {
|
||||
zigCoroutineScope.launchWithEDT(ModalityState.any()) {
|
||||
zigCoroutineScope.launchWithEDT(ModalityState.defaultModalityState()) {
|
||||
this@ZigDebuggerToolchainConfigurableUi.update()
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ class ZigDebuggerToolchainConfigurableUi : ZigDebuggerUiComponent {
|
|||
cell(useClion)
|
||||
}
|
||||
}
|
||||
zigCoroutineScope.launchWithEDT(ModalityState.any()) {
|
||||
zigCoroutineScope.launchWithEDT(ModalityState.defaultModalityState()) {
|
||||
update()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ class ZigProjectSettingsPanel(private val holder: ZigProjectConfigurationProvide
|
|||
}
|
||||
|
||||
private fun dispatchAutodetect(force: Boolean) {
|
||||
project.zigCoroutineScope.launchWithEDT(ModalityState.any()) {
|
||||
project.zigCoroutineScope.launchWithEDT(ModalityState.defaultModalityState()) {
|
||||
withModalProgress(ModalTaskOwner.component(pathToToolchain), "Detecting Zig...", TaskCancellation.cancellable()) {
|
||||
autodetect(force)
|
||||
}
|
||||
|
|
|
@ -279,7 +279,7 @@ class ZLSSettingsPanel(private val project: Project) : ZigProjectConfigurationPr
|
|||
}
|
||||
|
||||
private fun dispatchAutodetect(force: Boolean) {
|
||||
project.zigCoroutineScope.launchWithEDT(ModalityState.any()) {
|
||||
project.zigCoroutineScope.launchWithEDT(ModalityState.defaultModalityState()) {
|
||||
withModalProgress(ModalTaskOwner.component(zlsPath), "Detecting ZLS...", TaskCancellation.cancellable()) {
|
||||
autodetect(force)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue