mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[services] IDEA-326824 send initial run dashboard reset event later
GitOrigin-RevId: ddb6e6581d902b8ad01879978135afa2e70e3291
This commit is contained in:
committed by
intellij-monorepo-bot
parent
1c25c44a76
commit
063edc65c7
+13
-5
@@ -24,6 +24,7 @@ import com.intellij.openapi.actionSystem.ActionGroup;
|
||||
import com.intellij.openapi.actionSystem.ActionManager;
|
||||
import com.intellij.openapi.actionSystem.ActionPlaces;
|
||||
import com.intellij.openapi.actionSystem.ActionToolbar;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.components.PersistentStateComponent;
|
||||
import com.intellij.openapi.components.State;
|
||||
import com.intellij.openapi.components.Storage;
|
||||
@@ -762,9 +763,7 @@ public final class RunDashboardManagerImpl implements RunDashboardManager, Persi
|
||||
myTypes.addAll(enableByDefaultTypes);
|
||||
if (!myTypes.isEmpty()) {
|
||||
loadHiddenConfigurations();
|
||||
syncConfigurations();
|
||||
initServiceContentListeners();
|
||||
updateDashboard(true);
|
||||
initTypes();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -784,13 +783,22 @@ public final class RunDashboardManagerImpl implements RunDashboardManager, Persi
|
||||
}
|
||||
}
|
||||
|
||||
private void initTypes() {
|
||||
syncConfigurations();
|
||||
initServiceContentListeners();
|
||||
ApplicationManager.getApplication().executeOnPooledThread(() -> {
|
||||
if (!myProject.isDisposed()) {
|
||||
updateDashboard(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void noStateLoaded() {
|
||||
myTypes.clear();
|
||||
myTypes.addAll(getEnableByDefaultTypes());
|
||||
if (!myTypes.isEmpty()) {
|
||||
syncConfigurations();
|
||||
initServiceContentListeners();
|
||||
initTypes();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user