Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions flutter-idea/src/io/flutter/run/FlutterAppManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public static FlutterAppManager getInstance(@NotNull Project project) {
private FlutterAppManager(@NotNull Project project) {
this.project = project;

// TODO This object shoud have a different disposable parent to enable dynamic plugin loading.
Disposer.register(project, this);

task = JobScheduler.getScheduler().scheduleWithFixedDelay(
Expand Down Expand Up @@ -119,6 +120,9 @@ private void updateActiveApp() {

@Nullable
private RunContentManager getRunContentManager() {
if (project.isDisposed()) {
return null;
}
// Creating a RunContentManager causes a blank window to appear, so don't create it here.
// See https://github.com/flutter/flutter-intellij/issues/4217
if (ServiceManager.getServiceIfCreated(project, RunContentManager.class) == null) {
Expand Down