@@ -36,6 +36,8 @@ public class GerritPlugin : GitPluginBase, IGitPluginForRepository
3636 private const string DefaultPublishTargetBranch = "local" ;
3737
3838 private readonly BoolSetting _gerritEnabled = new ( "Gerrit plugin enabled" , true ) ;
39+ private readonly BoolSetting _gerritShowChangeSubmittedDialog = new ( "Show change submitted dialog" , false ) ;
40+
3941 private readonly ChoiceSetting _predefinedGerritVersion = new (
4042 "Treat Gerrit as having version" ,
4143 new [ ] { DefaultGerritVersion , "Older then 2.15" } ,
@@ -307,8 +309,9 @@ private void publishMenuItem_Click(object sender, EventArgs e)
307309 ? GerritCapabilities . Version2_15
308310 : GerritCapabilities . OldestVersion ;
309311 var shouldTargetLocalBranch = _predefinedPublishTargetBranch . ValueOrDefault ( Settings ) == DefaultPublishTargetBranch ;
312+ var showChangeSubmittedDialog = _gerritShowChangeSubmittedDialog . ValueOrDefault ( Settings ) ;
310313
311- using ( var form = new FormGerritPublish ( _gitUiCommands , capabilities , shouldTargetLocalBranch ) )
314+ using ( var form = new FormGerritPublish ( _gitUiCommands , capabilities , shouldTargetLocalBranch , showChangeSubmittedDialog ) )
312315 {
313316 form . ShowDialog ( _mainForm ) ;
314317 }
@@ -479,6 +482,7 @@ public override bool Execute(GitUIEventArgs args)
479482 public override IEnumerable < ISetting > GetSettings ( )
480483 {
481484 yield return _gerritEnabled ;
485+ yield return _gerritShowChangeSubmittedDialog ;
482486 yield return _predefinedGerritVersion ;
483487 yield return _hidePushButton ;
484488 yield return _predefinedPublishTargetBranch ;
0 commit comments