Skip to content

Commit d4804ad

Browse files
committed
Fix for changing username (or another setting) with no solution open
1 parent ebc09ad commit d4804ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TeamCoding/VisualStudio/IDEWrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private Visual GetWpfMainWindow(EnvDTE.DTE dte)
153153
}
154154
public void UpdateIDE(bool forceUpdate)
155155
{
156-
WpfMainWindow.Dispatcher.InvokeAsync(() => UpdateIDE_Internal(forceUpdate));
156+
WpfMainWindow?.Dispatcher.InvokeAsync(() => UpdateIDE_Internal(forceUpdate));
157157
}
158158
private void UpdateIDE_Internal(bool forceUpdate)
159159
{

0 commit comments

Comments
 (0)