mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Change theme settings file name to Themes.xml and moved it to a Const in App.Info.Settings.
This commit is contained in:
@@ -21,6 +21,7 @@ Namespace App
|
||||
#End If
|
||||
Public Shared ReadOnly LayoutFileName As String = "pnlLayout.xml"
|
||||
Public Shared ReadOnly ExtAppsFilesName As String = "extApps.xml"
|
||||
Public Const ThemesFileName As String = "Themes.xml"
|
||||
End Class
|
||||
|
||||
Public Class Update
|
||||
|
||||
@@ -50,7 +50,7 @@ Public Class frmMain
|
||||
|
||||
Try
|
||||
AddHandler Windows.Theme.ThemeChanged, AddressOf ApplyThemes
|
||||
Dim themes As List(Of Theme) = ThemeSerializer.LoadFromXmlFile(Path.Combine(App.Info.Settings.SettingsPath, "Theme.xml"))
|
||||
Dim themes As List(Of Theme) = ThemeSerializer.LoadFromXmlFile(Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName))
|
||||
If themes.Count Then Windows.Theme.FromTheme(themes(0))
|
||||
Catch ex As Exception
|
||||
Debug.Print(ex.Message)
|
||||
|
||||
@@ -1781,7 +1781,7 @@ Public Class frmOptions
|
||||
|
||||
My.Settings.XULRunnerPath = Me.txtXULrunnerPath.Text
|
||||
|
||||
Config.ThemeSerializer.SaveToXmlFile(Windows.Theme, Path.Combine(App.Info.Settings.SettingsPath, "Theme.xml"))
|
||||
Config.ThemeSerializer.SaveToXmlFile(Windows.Theme, Path.Combine(App.Info.Settings.SettingsPath, App.Info.Settings.ThemesFileName))
|
||||
|
||||
If My.Settings.LoadConsFromCustomLocation = False Then
|
||||
App.Runtime.SetMainFormText(App.Info.Connections.DefaultConnectionsPath & "\" & App.Info.Connections.DefaultConnectionsFile)
|
||||
|
||||
Reference in New Issue
Block a user