Skip to content
Permalink
Browse files

[Assets] Fix CodeViewModel to use ProjectCodeViewModel

  • Loading branch information
xen2 committed Sep 12, 2018
1 parent fe22dec commit b894a176aedd55b14afe3b1e5d5f0a0ec8a03e68
Showing with 2 additions and 5 deletions.
  1. +2 −5 sources/editor/Xenko.Assets.Presentation/ViewModel/CodeViewModel.cs
@@ -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)
@@ -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>

0 comments on commit b894a17

Please sign in to comment.
You can’t perform that action at this time.