Skip to content

Commit

Permalink
e2e updates. Only use AttachDevTools when in Debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianSuess committed Aug 24, 2024
1 parent 4f19d14 commit 33c22ab
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions e2e/BootstrapperShellSample/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ public partial class MainWindow : Window
public MainWindow()
{
this.InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}
}
}
2 changes: 2 additions & 0 deletions e2e/ModulesSample/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public MainWindow()
public MainWindow(IEventAggregator eventAggregator)
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif

_logTextBox = this.FindControl<TextBox>("LogTextBox");
_itemsControl = this.FindControl<ListBox>("ItemsControl1");
Expand Down
6 changes: 5 additions & 1 deletion e2e/SampleBaseApp/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Avalonia;
using Avalonia.Controls;

namespace SampleBaseApp.Views
Expand All @@ -7,6 +8,9 @@ public partial class MainWindow : Window
public MainWindow()
{
InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}
}
}
}
2 changes: 2 additions & 0 deletions e2e/ViewDiscovery/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public MainWindow()
public MainWindow(IRegionManager regionManager)
{
this.InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif

_regionManager = regionManager;
regionManager.RegisterViewWithRegion(RegionNames.ContentRegion, typeof(ViewA));
Expand Down

0 comments on commit 33c22ab

Please sign in to comment.