Skip to content

Commit ffc5206

Browse files
committed
fixes #966
1 parent e859968 commit ffc5206

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

RetailCoder.VBE/Extension.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public void OnConnection(object Application, ext_ConnectMode ConnectMode, object
3939
_kernel.Load(new RubberduckModule(_kernel, (VBE)Application, (AddIn)AddInInst));
4040
_kernel.Load(new UI.SourceControl.SourceControlBindings());
4141
_kernel.Load(new CommandBarsModule(_kernel));
42+
43+
var app = _kernel.Get<App>();
44+
app.Startup();
4245
}
4346
catch (Exception exception)
4447
{
@@ -48,8 +51,6 @@ public void OnConnection(object Application, ext_ConnectMode ConnectMode, object
4851

4952
public void OnStartupComplete(ref Array custom)
5053
{
51-
var app = _kernel.Get<App>();
52-
app.Startup();
5354
}
5455

5556
public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)

0 commit comments

Comments
 (0)