diff --git a/EasyExtractUnitypackageRework/EasyExtract/UserControls/Extraction.xaml.cs b/EasyExtractUnitypackageRework/EasyExtract/UserControls/Extraction.xaml.cs index f46fe4a..47bc532 100644 --- a/EasyExtractUnitypackageRework/EasyExtract/UserControls/Extraction.xaml.cs +++ b/EasyExtractUnitypackageRework/EasyExtract/UserControls/Extraction.xaml.cs @@ -189,6 +189,9 @@ private async Task PopulateExtractedFilesListAsync() var directories = Directory.GetDirectories(ConfigHelper.Config.LastExtractedPath); foreach (var directory in directories) { + StatusBar.Visibility = Visibility.Visible; + StatusProgressBar.Visibility = Visibility.Collapsed; + StatusBarText.Text = $"Loading {Path.GetFileName(directory)} Information..."; // Calculate total size and create a model for the Unitypackage. var totalSizeInBytes = await Task.Run(async () => await CalculateDirectoryTotalSizeInBytesAsync(directory)); var unitypackage = @@ -201,6 +204,8 @@ private async Task PopulateExtractedFilesListAsync() if (ExtractedUnitypackages.All(u => u.UnitypackageName != unitypackage.UnitypackageName)) ExtractedUnitypackages.Add(unitypackage); }); + StatusBar.Visibility = Visibility.Collapsed; + StatusProgressBar.Visibility = Visibility.Visible; } await _logger.LogAsync("Populated Extracted Files List", "Extraction.xaml.cs", Importance.Info);