Skip to content

Commit

Permalink
Added automatic settings upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luaancz committed Jan 22, 2015
1 parent 167e06d commit dfe0532
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion SalemOptimizer/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using SalemOptimizer.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
Expand All @@ -14,6 +15,9 @@ static class Program
[STAThread]
static void Main()
{
Settings.Default.Upgrade();
Settings.Default.Save();

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
Expand Down
4 changes: 2 additions & 2 deletions SalemOptimizer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
[assembly: AssemblyVersion("1.2.2.0")]
[assembly: AssemblyFileVersion("1.2.2.0")]
[assembly: AssemblyInformationalVersion("22. 1. 2015")]
3 changes: 2 additions & 1 deletion SalemOptimizer/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SalemOptimizer/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<Setting Name="PerenialPhilosophy" Roaming="true" Type="System.Decimal" Scope="User">
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="AvailableInspirationals" Type="System.String" Scope="User">
<Setting Name="AvailableInspirationals" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="MainFormLocation" Type="System.Drawing.Point" Scope="User">
Expand Down

0 comments on commit dfe0532

Please sign in to comment.