diff --git a/src/main/java/org/sonarlint/intellij/config/global/SonarLintAboutPanel.java b/src/main/java/org/sonarlint/intellij/config/global/SonarLintAboutPanel.java index a6d5e0127..5cd7acaaf 100644 --- a/src/main/java/org/sonarlint/intellij/config/global/SonarLintAboutPanel.java +++ b/src/main/java/org/sonarlint/intellij/config/global/SonarLintAboutPanel.java @@ -237,7 +237,7 @@ public void load(SonarLintTelemetry telemetry) { // we could show a loader while getting the value runOnPooledThread(() -> telemetry.enabled().thenAccept(enabled -> { telemetryInitiallyEnabled = enabled; - runOnUiThread(ModalityState.defaultModalityState(), () -> enableTelemetryCheckBox.setSelected(enabled)); + runOnUiThread(ModalityState.stateForComponent(panel), () -> enableTelemetryCheckBox.setSelected(enabled)); })); }