File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -440,6 +440,8 @@ public async void UseExternalMergeTool(Models.Change change)
440440
441441 public void ContinueMerge ( )
442442 {
443+ IsCommitting = true ;
444+
443445 if ( _inProgressContext != null )
444446 {
445447 _repo . SetWatcherEnabled ( false ) ;
@@ -456,17 +458,21 @@ public void ContinueMerge()
456458 CommitMessage = string . Empty ;
457459
458460 _repo . SetWatcherEnabled ( true ) ;
461+ IsCommitting = false ;
459462 } ) ;
460463 } ) ;
461464 }
462465 else
463466 {
464467 _repo . MarkWorkingCopyDirtyManually ( ) ;
468+ IsCommitting = false ;
465469 }
466470 }
467471
468472 public void SkipMerge ( )
469473 {
474+ IsCommitting = true ;
475+
470476 if ( _inProgressContext != null )
471477 {
472478 _repo . SetWatcherEnabled ( false ) ;
@@ -479,17 +485,21 @@ public void SkipMerge()
479485 CommitMessage = string . Empty ;
480486
481487 _repo . SetWatcherEnabled ( true ) ;
488+ IsCommitting = false ;
482489 } ) ;
483490 } ) ;
484491 }
485492 else
486493 {
487494 _repo . MarkWorkingCopyDirtyManually ( ) ;
495+ IsCommitting = false ;
488496 }
489497 }
490498
491499 public void AbortMerge ( )
492500 {
501+ IsCommitting = true ;
502+
493503 if ( _inProgressContext != null )
494504 {
495505 _repo . SetWatcherEnabled ( false ) ;
@@ -502,12 +512,14 @@ public void AbortMerge()
502512 CommitMessage = string . Empty ;
503513
504514 _repo . SetWatcherEnabled ( true ) ;
515+ IsCommitting = false ;
505516 } ) ;
506517 } ) ;
507518 }
508519 else
509520 {
510521 _repo . MarkWorkingCopyDirtyManually ( ) ;
522+ IsCommitting = false ;
511523 }
512524 }
513525
Original file line number Diff line number Diff line change 397397 Width =" 0" Height =" 0"
398398 Background =" Transparent"
399399 Command =" {Binding CommitWithAutoStage}"
400- HotKey =" {OnPlatform Ctrl+Shift+Enter, macOS=⌘+Shift+Enter}" />
400+ HotKey =" {OnPlatform Ctrl+Shift+Enter, macOS=⌘+Shift+Enter}"
401+ IsEnabled =" {Binding !IsCommitting}" />
401402
402403 <Button Grid.Column=" 8"
403404 Classes =" flat"
You can’t perform that action at this time.
0 commit comments