diff --git a/src/StatisticsAnalysisTool/GameData/MobsData.cs b/src/StatisticsAnalysisTool/GameData/MobsData.cs index 6d5f88f5c..2bb0cdb88 100644 --- a/src/StatisticsAnalysisTool/GameData/MobsData.cs +++ b/src/StatisticsAnalysisTool/GameData/MobsData.cs @@ -1,4 +1,4 @@ -using log4net; +using log4net; using StatisticsAnalysisTool.Common; using StatisticsAnalysisTool.Common.UserSettings; using StatisticsAnalysisTool.Models; @@ -91,7 +91,10 @@ public static async Task LoadMobsDataAsync() } var fullMobsJson = GetDataFromFullJsonFileLocal(tempFilePath); - await FileController.SaveAsync(fullMobsJson, regularDataFilePath); + if(fullMobsJson.Count() > 1) + { + await FileController.SaveAsync(fullMobsJson, regularDataFilePath); + } } _mobs = GetSpecificDataFromJsonFileLocal(regularDataFilePath); @@ -121,7 +124,7 @@ private static IEnumerable GetSpecificDataFromJsonFileLocal(strin } } - private static IEnumerable GetDataFromFullJsonFileLocal(string localFilePath) + private static List GetDataFromFullJsonFileLocal(string localFilePath) { try { @@ -139,7 +142,7 @@ private static IEnumerable GetDataFromFullJsonFileLocal(string lo { ConsoleManager.WriteLineForError(MethodBase.GetCurrentMethod()?.DeclaringType, e); Log.Error(MethodBase.GetCurrentMethod()?.DeclaringType, e); - return new ObservableCollection(); + return new List(); } } } \ No newline at end of file diff --git a/src/StatisticsAnalysisTool/Styles/ItemWindowStyles.xaml b/src/StatisticsAnalysisTool/Styles/ItemWindowStyles.xaml index c7506f6ef..147baf8ab 100644 --- a/src/StatisticsAnalysisTool/Styles/ItemWindowStyles.xaml +++ b/src/StatisticsAnalysisTool/Styles/ItemWindowStyles.xaml @@ -116,7 +116,7 @@ @@ -654,20 +652,18 @@ @@ -734,20 +730,18 @@ @@ -814,20 +808,18 @@ diff --git a/src/StatisticsAnalysisTool/Views/ItemWindow.xaml b/src/StatisticsAnalysisTool/Views/ItemWindow.xaml index 925cf0d21..53a03b0d4 100644 --- a/src/StatisticsAnalysisTool/Views/ItemWindow.xaml +++ b/src/StatisticsAnalysisTool/Views/ItemWindow.xaml @@ -58,14 +58,22 @@ - - - - - - - - + + + + + + + +