Skip to content

Commit

Permalink
Additional changes for #114
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienKluge committed Mar 22, 2019
1 parent 09266f2 commit 977c641
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions Interop/OptionsControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ namespace Spedit //leave this here instead of .Interop because of reasons...
[Serializable]
public class OptionsControl
{
public static int SVersion = 10;
public int Version = 10;
public static int SVersion = 11;
public int Version = 11;

public byte[] Program_CryptoKey = null;
public bool Program_UseHardwareSalts = true;
Expand Down Expand Up @@ -123,11 +123,16 @@ public void FillNullToDefaults()
Editor_AutoSaveInterval = 5 * 60;
this.ReCreateCryptoKey();
Program.MakeRCCKAlert();
}
if (Version < 10)
{
Program_UseHardwareSalts = true;
}
}
if (Version < 10)
{
Program_UseHardwareSalts = true;
}
if (Version < 11)
{
if (this.Program_AccentColor == "Cyan")
this.Program_AccentColor = "Blue";
}
//new Optionsversion - reset new fields to default
this.Version = OptionsControl.SVersion; //then Update Version afterwars
}
Expand Down
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Spedit
{
public static class Program
{
public const string ProgramInternalVersion = "12";
public const string ProgramInternalVersion = "13";

public static MainWindow MainWindow;
public static OptionsControl OptionsObject;
Expand Down

0 comments on commit 977c641

Please sign in to comment.