Skip to content

Commit

Permalink
[Assets] Fix CodeViewModel to use ProjectCodeViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
xen2 committed Sep 12, 2018
1 parent fe22dec commit b894a17
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -176,9 +176,7 @@ private async Task ReloadProject(SessionViewModel session, Project project)

// List current assets
var projectAssets = new List<AssetViewModel>();
// TODO CSPROJ=XKPKG
//var isProjectDirty = GetAssets(projectViewModel, projectAssets);
var isProjectDirty = false;
var isProjectDirty = GetAssets(projectViewModel.Code, projectAssets);

// Project is dirty, ask user if he really wants to auto-reload
if (isProjectDirty)
Expand All @@ -204,8 +202,7 @@ private async Task ReloadProject(SessionViewModel session, Project project)

// Mark project as non dirty
// TODO: Does that work properly with Undo/Redo?
// TODO CSPROJ=XKPKG
//UpdateDirtiness(projectViewModel, false);
UpdateDirtiness(projectViewModel.Code, false);
}

/// <summary>
Expand Down

0 comments on commit b894a17

Please sign in to comment.