vcs: non-modal: Update commit options based on current change list on "Commit" invocation (IDEA-216219)

GitOrigin-RevId: 29c4318cef89d7968dee2a393bc29603cb27d32e
This commit is contained in:
Konstantin Kolosovsky
2019-10-13 15:02:11 +00:00
committed by intellij-monorepo-bot
parent c224531062
commit b00a983b0e
@@ -73,6 +73,8 @@ class ChangesViewCommitWorkflowHandler(
workflow.initCommitOptions(createCommitOptions())
commitOptions.restoreState()
currentChangeList?.let { commitOptions.changeListChanged(it) }
}
return commitOptions
}
@@ -175,6 +177,8 @@ class ChangesViewCommitWorkflowHandler(
val newCommitMessage = newChangeList?.let { commitMessagePolicy.getCommitMessage(it) { getIncludedChanges() } }
setCommitMessage(newCommitMessage)
newChangeList?.let { commitOptions.changeListChanged(it) }
}
override fun inclusionChanged() {