diff --git a/TileShop.WPF/TileShop.WPF.csproj b/TileShop.WPF/TileShop.WPF.csproj index c5fa7963..ec380d4f 100644 --- a/TileShop.WPF/TileShop.WPF.csproj +++ b/TileShop.WPF/TileShop.WPF.csproj @@ -6,7 +6,7 @@ 8.0 true TileShop - 0.92 + 0.93 diff --git a/TileShop.WPF/ViewModels/Dialogs/ImportImageViewModel.cs b/TileShop.WPF/ViewModels/Dialogs/ImportImageViewModel.cs index 9d96cbc3..1b3c09ac 100644 --- a/TileShop.WPF/ViewModels/Dialogs/ImportImageViewModel.cs +++ b/TileShop.WPF/ViewModels/Dialogs/ImportImageViewModel.cs @@ -139,7 +139,7 @@ private void ImportIndexed(string fileName) fail => { CanImport = false; - ImageFileName = string.Empty; + ImageFileName = fileName; ImportedSource = null; ImportError = fail.Reason; }); @@ -150,9 +150,9 @@ private void ImportIndexed(string fileName) public void ConfirmImport() { - if (IsTiledArranger) + if (_arranger.ColorType == PixelColorType.Indexed) _importedIndexed.SaveImage(); - else if (IsSingleArranger) + else if (_arranger.ColorType == PixelColorType.Direct) _importedDirect.SaveImage(); RequestClose(true);