Skip to content

Commit 95446d6

Browse files
committed
Small correction for reloading
1 parent c4f45ba commit 95446d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

RetailCoder.VBE/Extension.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616
using Rubberduck.Root;
1717
using Rubberduck.Settings;
1818
using Rubberduck.SettingsProvider;
19-
using Rubberduck.UI.Command.MenuItems;
2019
using Rubberduck.VBEditor.Events;
2120
using Rubberduck.VBEditor.SafeComWrappers.Abstract;
22-
using Rubberduck.VBEditor.WindowsApi;
23-
using User32 = Rubberduck.Common.WinAPI.User32;
2421
using Windows = Rubberduck.VBEditor.SafeComWrappers.VBA.Windows;
2522

2623
namespace Rubberduck
@@ -76,6 +73,7 @@ public void OnConnection(object Application, ext_ConnectMode ConnectMode, object
7673
// normal execution path - don't initialize just yet, wait for OnStartupComplete to be called by the host.
7774
break;
7875
case ext_ConnectMode.ext_cm_AfterStartup:
76+
_isBeginShutdownExecuted = false; //When we reconnect after having been unloaded, the variable might no longer have its initial value.
7977
InitializeAddIn();
8078
break;
8179
}

0 commit comments

Comments
 (0)