Skip to content

Commit edf0089

Browse files
committed
Revert "Enable undo in DesignerWindowPaneBase if host is already loaded"
This reverts commit d6baf21.
1 parent 3279cbb commit edf0089

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Microsoft.VisualStudio.Editors/DesignerFramework/DesignerWindowPaneProviderBase.vb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ Namespace Microsoft.VisualStudio.Editors.DesignerFramework
8888
_host = DirectCast(GetService(GetType(IDesignerHost)), IDesignerHost)
8989
If _host IsNot Nothing AndAlso Not _host.Loading Then
9090
PopulateView()
91-
EnableUndo()
9291
End If
9392

9493
AddHandler surface.Loaded, AddressOf OnLoaded
@@ -238,6 +237,10 @@ Namespace Microsoft.VisualStudio.Editors.DesignerFramework
238237
Protected Overrides Sub OnCreate()
239238
MyBase.OnCreate()
240239

240+
_host = DirectCast(GetService(GetType(IDesignerHost)), IDesignerHost)
241+
If _host IsNot Nothing AndAlso Not _host.Loading Then
242+
EnableUndo()
243+
End If
241244
End Sub
242245

243246
''' <summary>

0 commit comments

Comments
 (0)