Skip to content

Commit

Permalink
Disable tool window activation unless sync fails
Browse files Browse the repository at this point in the history
  • Loading branch information
LeFrosch committed Nov 22, 2024
1 parent 58da778 commit a571745
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ private class ProgressDescriptor(
private val descriptor = DefaultBuildDescriptor(Any(), title, "", System.currentTimeMillis())
.withRestartAction(RestartAction(ctx))
.withContentDescriptor(this::getContentDescriptor)
.apply { isActivateToolWindowWhenAdded = false }
.apply { isActivateToolWindowWhenFailed = true }
.apply { isNavigateToError = ThreeState.NO }

override fun getTitle(): String = title
Expand All @@ -109,6 +111,7 @@ private class ProgressDescriptor(

private fun getContentDescriptor(): RunContentDescriptor {
return RunContentDescriptor(console, null, console.component, title)
.apply { isActivateToolWindowWhenAdded = false }
}
}

Expand Down

0 comments on commit a571745

Please sign in to comment.