mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't allow to undo reword twice
Makes little sense, but can lead to issues (e.g. when trying to unstash local changes twice).
This commit is contained in:
@@ -72,6 +72,7 @@ class GitRewordOperation(private val repository: GitRepository,
|
||||
val notification = STANDARD_NOTIFICATION.createNotification("Reworded Successfully", "", NotificationType.INFORMATION, null)
|
||||
notification.addAction(object : NotificationAction("Undo") {
|
||||
override fun actionPerformed(e: AnActionEvent, notification: Notification) {
|
||||
notification.expire()
|
||||
val specForUndo = spec.cloneWithNewStatuses(mapOf(repository to GitRebaseStatus(SUCCESS, emptyList())))
|
||||
undo(project, specForUndo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user