From 0ddc0b1940aa43e05bacbc7095eb3a3c3ce75c97 Mon Sep 17 00:00:00 2001 From: Stephen Monaco Date: Wed, 8 Apr 2020 19:23:48 -0400 Subject: [PATCH] Fixed importing of single layout arrangers. Updated version. --- TileShop.WPF/TileShop.WPF.csproj | 2 +- TileShop.WPF/ViewModels/Dialogs/ImportImageViewModel.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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);