Skip to content

Re-enable attach button for add-to-app projects #4062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Conversation

stevemessick
Copy link
Member

IntelliJ seems to have tightened the expectations on UI performance, and we may be lagging.

The event used here changes status from running to canceled by the time the code at line 107 executes. Once canceled, we can't get the project anymore.

Also, Android apps (without Flutter) won't display the attach button. After a module is added the button needs to be made visible again (without restarting the IDE).

if (settings == null) {
enabled = false;
}
else {
RunConfiguration configuration = settings.getConfiguration();
enabled = configuration instanceof SdkRunConfig;
}
e.getPresentation().setVisible(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that we do want this visible even if enabled == false? We'll want it visible for Flutter enabled projects, just not enabled if if doesn't apply to the currently running app?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it would be disabled if the run config is for Android, and enabled when a Flutter run config is selected.

@stevemessick stevemessick merged commit 2776dc1 into master Nov 7, 2019
@stevemessick stevemessick deleted the enable-attach branch November 7, 2019 19:12
alexander-doroshko pushed a commit to alexander-doroshko/flutter-intellij that referenced this pull request Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants