Fix issue MR-410 - Unhandled exception when clicking New button under Theme

This commit is contained in:
Riley McArdle
2013-03-19 21:11:00 -05:00
parent 38011a3546
commit 72756a2bb8
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
Fixed issue MR-410 - Unhandled exception when clicking New button under Theme
1.71 Beta 2 (2013-03-19):
Added feature MR-336 - Customizable background color for the windows/panels
Added feature MR-345 - Two separate options for confirming closure of Tabs and Connection Panels

View File

@@ -24,7 +24,11 @@ Namespace Themes
Public Shared Function LoadThemes() As List(Of ThemeInfo)
Dim themes As New List(Of ThemeInfo)
themes.Add(DefaultTheme)
themes.AddRange(ThemeSerializer.LoadFromXmlFile(Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName)))
Try
themes.AddRange(ThemeSerializer.LoadFromXmlFile(Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName)))
Catch ex As FileNotFoundException
End Try
Return themes
End Function