Skip to content

Commit 33c22ab

Browse files
committed
e2e updates. Only use AttachDevTools when in Debug mode
1 parent 4f19d14 commit 33c22ab

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

e2e/BootstrapperShellSample/Views/MainWindow.axaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ public partial class MainWindow : Window
1212
public MainWindow()
1313
{
1414
this.InitializeComponent();
15+
#if DEBUG
1516
this.AttachDevTools();
17+
#endif
1618
}
1719
}
1820
}

e2e/ModulesSample/MainWindow.axaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public MainWindow()
2121
public MainWindow(IEventAggregator eventAggregator)
2222
{
2323
InitializeComponent();
24+
#if DEBUG
2425
this.AttachDevTools();
26+
#endif
2527

2628
_logTextBox = this.FindControl<TextBox>("LogTextBox");
2729
_itemsControl = this.FindControl<ListBox>("ItemsControl1");

e2e/SampleBaseApp/Views/MainWindow.axaml.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Avalonia;
12
using Avalonia.Controls;
23

34
namespace SampleBaseApp.Views
@@ -7,6 +8,9 @@ public partial class MainWindow : Window
78
public MainWindow()
89
{
910
InitializeComponent();
11+
#if DEBUG
12+
this.AttachDevTools();
13+
#endif
1014
}
1115
}
12-
}
16+
}

e2e/ViewDiscovery/Views/MainWindow.axaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ public MainWindow()
2121
public MainWindow(IRegionManager regionManager)
2222
{
2323
this.InitializeComponent();
24+
#if DEBUG
2425
this.AttachDevTools();
26+
#endif
2527

2628
_regionManager = regionManager;
2729
regionManager.RegisterViewWithRegion(RegionNames.ContentRegion, typeof(ViewA));

0 commit comments

Comments
 (0)