Skip to content

Commit

Permalink
Updated version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojeske committed May 18, 2019
1 parent 566652b commit 0568aec
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Ambilight/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<value>False</value>
</setting>
<setting name="autostartEnabled" serializeAs="String">
<value>False</value>
<value>True</value>
</setting>
</Ambilight.Properties.Settings>
</userSettings>
Expand Down
11 changes: 6 additions & 5 deletions Ambilight/GUI/TraySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class TraySettings
public bool PadEnabledBool { get; private set; }
public bool AmbiModeBool { get; private set; }
public bool UltrawideModeBool { get; private set; }
public bool Autostart { get; private set; }
public bool AutostartEnabledBool { get; private set; }

private NotifyIcon notifyIcon;

Expand All @@ -55,7 +55,7 @@ private void loadConfig()
Saturation = Properties.Settings.Default.saturation;
int _keyboardHeightProperty = Properties.Settings.Default.keyboardHeight;
int _keyboardWidthProperty = Properties.Settings.Default.keyboardWidth;
Autostart = Properties.Settings.Default.autostartEnabled;
AutostartEnabledBool = Properties.Settings.Default.autostartEnabled;



Expand All @@ -82,8 +82,9 @@ private void loadConfig()
{
Tickrate = 5;
Saturation = 1f;
}
}

logger.Info("Autostart: " + AutostartEnabledBool);
logger.Info("Keyboard width: " + KeyboardWidth);
logger.Info("Keyboard height: " + KeyboardHeight);
logger.Info("Max FPS: " + Tickrate);
Expand Down Expand Up @@ -140,7 +141,7 @@ private void InitializeTray()
EnableMenuItemOnClick(sender, args);
Properties.Settings.Default.autostartEnabled = (sender as MenuItem).Checked;
changeAutoStart();
Autostart = (sender as MenuItem).Checked;
AutostartEnabledBool = (sender as MenuItem).Checked;
Properties.Settings.Default.Save();
});

Expand All @@ -155,7 +156,7 @@ private void InitializeTray()
_ultrawideModeEnabled.Checked = Properties.Settings.Default.ambiEnabled;
UltrawideModeBool = Properties.Settings.Default.ultrawideEnabled;
_autostart.Checked = checkAutostart(Environment.GetFolderPath(Environment.SpecialFolder.Startup) + "/Ambilight.lnk");
Autostart = Properties.Settings.Default.autostartEnabled;
AutostartEnabledBool = Properties.Settings.Default.autostartEnabled;

var components = new System.ComponentModel.Container();
var contextMenu = new ContextMenu();
Expand Down
2 changes: 1 addition & 1 deletion Ambilight/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal class Program
private static void Main(string[] args)
{

logger.Info("\n\n\n --- Razer Ambilight Version 2.1.1 ----");
logger.Info("\n\n\n --- Razer Ambilight Version 2.2.0 ----");
AutoUpdater.Start("https://vertretungsplan.ga/ambi/ambi.xml");

GUI.TraySettings tray = new GUI.TraySettings();
Expand Down
4 changes: 2 additions & 2 deletions Ambilight/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.1.0")]
[assembly: AssemblyFileVersion("2.1.1.0")]
[assembly: AssemblyVersion("2.2.0.0")]
[assembly: AssemblyFileVersion("2.2.0.0")]
[assembly: NeutralResourcesLanguage("")]
4 changes: 2 additions & 2 deletions Ambilight/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 Ambilight/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="autostartEnabled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>

0 comments on commit 0568aec

Please sign in to comment.