@@ -36,6 +36,8 @@ public class GerritPlugin : GitPluginBase, IGitPluginForRepository
36
36
private const string DefaultPublishTargetBranch = "local" ;
37
37
38
38
private readonly BoolSetting _gerritEnabled = new ( "Gerrit plugin enabled" , true ) ;
39
+ private readonly BoolSetting _gerritShowChangeSubmittedDialog = new ( "Show change submitted dialog" , false ) ;
40
+
39
41
private readonly ChoiceSetting _predefinedGerritVersion = new (
40
42
"Treat Gerrit as having version" ,
41
43
new [ ] { DefaultGerritVersion , "Older then 2.15" } ,
@@ -307,8 +309,9 @@ private void publishMenuItem_Click(object sender, EventArgs e)
307
309
? GerritCapabilities . Version2_15
308
310
: GerritCapabilities . OldestVersion ;
309
311
var shouldTargetLocalBranch = _predefinedPublishTargetBranch . ValueOrDefault ( Settings ) == DefaultPublishTargetBranch ;
312
+ var showChangeSubmittedDialog = _gerritShowChangeSubmittedDialog . ValueOrDefault ( Settings ) ;
310
313
311
- using ( var form = new FormGerritPublish ( _gitUiCommands , capabilities , shouldTargetLocalBranch ) )
314
+ using ( var form = new FormGerritPublish ( _gitUiCommands , capabilities , shouldTargetLocalBranch , showChangeSubmittedDialog ) )
312
315
{
313
316
form . ShowDialog ( _mainForm ) ;
314
317
}
@@ -479,6 +482,7 @@ public override bool Execute(GitUIEventArgs args)
479
482
public override IEnumerable < ISetting > GetSettings ( )
480
483
{
481
484
yield return _gerritEnabled ;
485
+ yield return _gerritShowChangeSubmittedDialog ;
482
486
yield return _predefinedGerritVersion ;
483
487
yield return _hidePushButton ;
484
488
yield return _predefinedPublishTargetBranch ;
0 commit comments