Skip to content

Commit

Permalink
Remove attach dev tools call
Browse files Browse the repository at this point in the history
  • Loading branch information
sandermvanvliet committed Mar 15, 2024
1 parent 406cb32 commit b1b8a3b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public partial class RouteSegmentListView : UserControl

public RouteSegmentListView()
{
InitializeComponent();
InitializeComponent(true);

DataContextChanged += (_, _) =>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public ElevationProfileWindow(IGameStateReceiver gameStateReceiver, IUserPrefere

InitializeComponent();

#if DEBUG
this.AttachDevTools();
#endif

gameStateReceiver.ReceiveGameState(GameStateReceived);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ public InGameNavigationWindow(IGameStateReceiver gameStateReceiver,
_monitoringEvents = monitoringEvents;
_userPreferences = userPreferences;

InitializeComponent();

#if DEBUG
this.AttachDevTools();
#endif
InitializeComponent(true);

gameStateReceiver.ReceiveGameState(GameStateReceived);
gameStateReceiver.ReceiveLastSequenceNumber(sequenceNumber => _viewModel!.LastSequenceNumber = sequenceNumber);
Expand Down
6 changes: 1 addition & 5 deletions src/RoadCaptain.App.Runner/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ public MainWindow(MainWindowViewModel viewModel, IGameStateReceiver gameStateRec

DataContext = viewModel;

InitializeComponent();

#if DEBUG
this.AttachDevTools();
#endif
InitializeComponent(true);

ZwiftMap.LogDiagnostics = false;
}
Expand Down
3 changes: 0 additions & 3 deletions src/RoadCaptain.App.Shared/Views/SelectRouteWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ public SelectRouteWindow(
DataContext = viewModel;

InitializeComponent();
#if DEBUG
this.AttachDevTools();
#endif
}

public RouteModel? SelectedRoute => _viewModel.SelectedRoute?.AsRouteModel();
Expand Down

0 comments on commit b1b8a3b

Please sign in to comment.