Skip to content

Commit

Permalink
- fixed: last used skin will be loaded when the program is restarted
Browse files Browse the repository at this point in the history
- fixed: "Use Default Skin" button in the skin selection dialog had no effect
  • Loading branch information
PredatH0r committed Nov 4, 2015
1 parent 639af44 commit 8b11e47
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ServerBrowser/ServerBrowserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace ServerBrowser
{
public partial class ServerBrowserForm : XtraForm
{
private const string Version = "2.17";
private const string Version = "2.18";
private const string DevExpressVersion = "v15.1";
private const string CustomDetailColumnPrefix = "ServerInfo.";
private const string CustomRuleColumnPrefix = "custRule.";
Expand Down Expand Up @@ -372,6 +372,7 @@ protected virtual void ApplyAppSettings(IniFile ini)
#region ApplyAppSettingsFromIni()
private int ApplyAppSettingsFromIni(IniFile ini, IniFile.Section options, out string[] masterServers)
{
UserLookAndFeel.Default.SkinName = options.GetString("Skin") ?? "Office 2010 Black";
masterServers = (options.GetString("ApplyAppSettingsFromXml") ?? "").Split(',');
this.miShowOptions.Down = options.GetBool("ShowOptions", true);
this.miShowServerQuery.Down = options.GetBool("ShowServerQuery", true);
Expand Down
5 changes: 3 additions & 2 deletions ServerBrowser/SkinPicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ private void InitGallery()
#region btnReset_Click
private void btnReset_Click(object sender, EventArgs e)
{
const string DefaultSkin = "Office 2010 Black";
foreach (var galItem in gallery.Gallery.GetAllItems())
{
if (galItem.Caption == DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName)
if (galItem.Caption == DefaultSkin)
{
galItem.Checked = true;
break;
}
}
DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = this.initialSkinName;
DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = DefaultSkin;
}
#endregion

Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.18
---
- fixed: last used skin will be loaded when the program is restarted
- fixed: "Use Default Skin" button in the skin selection dialog had no effect

2.17
---
- fixed "max players" display for non-team modes (Duel, FFA, Race)
Expand Down

0 comments on commit 8b11e47

Please sign in to comment.