Skip to content

Commit

Permalink
revert homePage under test mode
Browse files Browse the repository at this point in the history
- revert allowing HomePage initialization under test mode
  • Loading branch information
dnenov committed Apr 3, 2024
1 parent 84d10cd commit 3168b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DynamoCoreWpf/Views/Core/DynamoView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1386,15 +1386,15 @@ private void DynamoView_Loaded(object sender, EventArgs e)
}

// Load the new HomePage
if (DynamoModel.IsTestMode || IsNewAppHomeEnabled) LoadHomePage();
if (IsNewAppHomeEnabled) LoadHomePage();

loaded = true;
}

// Add the HomePage to the DynamoView once its loaded
private void LoadHomePage()
{
if (homePage == null && (startPage != null || DynamoModel.IsTestMode))
if (homePage == null && (startPage != null))
{
homePage = new UI.Views.HomePage();
homePage.DataContext = startPage;
Expand Down

0 comments on commit 3168b22

Please sign in to comment.