Skip to content

Commit

Permalink
Merge #4257
Browse files Browse the repository at this point in the history
4257: RUN: Fix Build action when build toolwindow is disabled r=mchernyavsky a=mchernyavsky

Fixes #3926 (comment).

bors r+

Co-authored-by: Mikhail Chernyavsky <chemike47@gmail.com>
  • Loading branch information
bors[bot] and Mikhail Chernyavsky committed Aug 14, 2019
2 parents aa37885 + 21b5b1e commit d69c599
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,7 +29,8 @@ open class CargoCommandRunner : DefaultProgramRunner() {

override fun doExecute(state: RunProfileState, environment: ExecutionEnvironment): RunContentDescriptor? {
val configuration = environment.runProfile
return if (configuration is CargoCommandConfiguration && !isBuildConfiguration(configuration)) {
return if (configuration is CargoCommandConfiguration &&
!(isBuildConfiguration(configuration) && configuration.project.isBuildToolWindowEnabled)) {
super.doExecute(state, environment)
} else {
null
Expand Down

0 comments on commit d69c599

Please sign in to comment.