Skip to content

Commit d9af7aa

Browse files
committed
Moved AssignedByValParameterQuickFixDialogFactory Bind() call into the Load() function
1 parent b0d3911 commit d9af7aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RetailCoder.VBE/Root/RubberduckModule.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ public override void Load()
139139
.WhenInjectedInto<ToDoExplorerCommand>()
140140
.InSingletonScope();
141141

142+
Bind<IAssignedByValParameterQuickFixDialogFactory>().To<AssignedByValParameterQuickFixDialogFactory>()
143+
.WhenInjectedInto<AssignedByValParameterInspection>();
144+
142145
BindDockableToolwindows();
143146
BindCommandsToCodeExplorer();
144147
ConfigureRubberduckCommandBar();
@@ -150,6 +153,7 @@ public override void Load()
150153

151154
BindWindowsHooks();
152155

156+
153157
}
154158

155159
private void BindDockableToolwindows()
@@ -429,10 +433,6 @@ private IEnumerable<ICommandMenuItem> GetRubberduckCommandBarItems()
429433

430434
private IEnumerable<IMenuItem> GetRubberduckMenuItems()
431435
{
432-
//This bind needs to occur before the the new array is built by the function calls
433-
Bind<IAssignedByValParameterQuickFixDialogFactory>().To<AssignedByValParameterQuickFixDialogFactory>()
434-
.WhenInjectedInto<AssignedByValParameterInspection>();
435-
436436
return new[]
437437
{
438438
KernelInstance.Get<AboutCommandMenuItem>(),

0 commit comments

Comments
 (0)