Skip to content

Commit dfe0532

Browse files
committed
Added automatic settings upgrade.
1 parent 167e06d commit dfe0532

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

SalemOptimizer/Program.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using SalemOptimizer.Properties;
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Threading.Tasks;
@@ -14,6 +15,9 @@ static class Program
1415
[STAThread]
1516
static void Main()
1617
{
18+
Settings.Default.Upgrade();
19+
Settings.Default.Save();
20+
1721
Application.EnableVisualStyles();
1822
Application.SetCompatibleTextRenderingDefault(false);
1923
Application.Run(new MainForm());

SalemOptimizer/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.2.0.0")]
36-
[assembly: AssemblyFileVersion("1.2.0.0")]
35+
[assembly: AssemblyVersion("1.2.2.0")]
36+
[assembly: AssemblyFileVersion("1.2.2.0")]
3737
[assembly: AssemblyInformationalVersion("22. 1. 2015")]

SalemOptimizer/Properties/Settings.Designer.cs

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SalemOptimizer/Properties/Settings.settings

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<Setting Name="PerenialPhilosophy" Roaming="true" Type="System.Decimal" Scope="User">
4848
<Value Profile="(Default)">0</Value>
4949
</Setting>
50-
<Setting Name="AvailableInspirationals" Type="System.String" Scope="User">
50+
<Setting Name="AvailableInspirationals" Roaming="true" Type="System.String" Scope="User">
5151
<Value Profile="(Default)" />
5252
</Setting>
5353
<Setting Name="MainFormLocation" Type="System.Drawing.Point" Scope="User">

0 commit comments

Comments
 (0)