diff --git a/src/Compatibility.cs b/src/Compatibility.cs index 2ee43ec..d63b8b5 100644 --- a/src/Compatibility.cs +++ b/src/Compatibility.cs @@ -119,7 +119,7 @@ private static void UpdateThemeImageLists() theme.nightImageList = new int[] { 14, 15, 16, 2 }; } - string newJson = JsonConvert.SerializeObject(theme); + string newJson = JsonConvert.SerializeObject(theme, Formatting.Indented); File.WriteAllText(filePath, newJson); } } diff --git a/src/ThemeManager.cs b/src/ThemeManager.cs index 65673b7..f18435a 100644 --- a/src/ThemeManager.cs +++ b/src/ThemeManager.cs @@ -40,21 +40,21 @@ public static void Initialize() foreach (string themeId in themeIds) { - //try - //{ - ThemeConfig theme = JsonConfig.LoadTheme(themeId); + try + { + ThemeConfig theme = JsonConfig.LoadTheme(themeId); - themeSettings.Add(theme); + themeSettings.Add(theme); - if (theme.themeId == JsonConfig.settings.themeName) + if (theme.themeId == JsonConfig.settings.themeName) + { + currentTheme = theme; + } + } + catch { - currentTheme = theme; + DisableTheme(themeId); } - //} - //catch - //{ - // DisableTheme(themeId); - //} } DownloadMissingImages(FindMissingThemes()); diff --git a/uwp/Package.appxmanifest b/uwp/Package.appxmanifest index c8d0c49..d934f2a 100644 --- a/uwp/Package.appxmanifest +++ b/uwp/Package.appxmanifest @@ -1,6 +1,6 @@  - + WinDynamicDesktop Timothy Johnson