mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: non-modal: Hide commit panel after commit checks succeeded
If toggling commit panel visibility is enabled GitOrigin-RevId: ff0d48a6c38a6241defcbd4f620f25515926d2e0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cbd8bb942b
commit
c2857a75a5
@@ -13,6 +13,7 @@ import com.intellij.openapi.vcs.VcsConfiguration
|
||||
import com.intellij.openapi.vcs.VcsException
|
||||
import com.intellij.openapi.vcs.changes.*
|
||||
import com.intellij.openapi.vcs.changes.actions.DefaultCommitExecutorAction
|
||||
import com.intellij.openapi.vcs.checkin.CheckinHandler
|
||||
import com.intellij.vcs.commit.AbstractCommitWorkflow.Companion.getCommitExecutors
|
||||
import gnu.trove.THashSet
|
||||
|
||||
@@ -157,6 +158,11 @@ class ChangesViewCommitWorkflowHandler(
|
||||
super.inclusionChanged()
|
||||
}
|
||||
|
||||
override fun beforeCommitChecksEnded(isDefaultCommit: Boolean, result: CheckinHandler.ReturnResult) {
|
||||
super.beforeCommitChecksEnded(isDefaultCommit, result)
|
||||
if (isToggleCommitUi.asBoolean() && result == CheckinHandler.ReturnResult.COMMIT) ui.deactivate()
|
||||
}
|
||||
|
||||
override fun updateWorkflow() {
|
||||
workflow.commitState = getCommitState()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user