Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hary309 committed Dec 8, 2018
2 parents c273337 + 909b3a0 commit d385485
Show file tree
Hide file tree
Showing 33 changed files with 940 additions and 511 deletions.
301 changes: 151 additions & 150 deletions src/Settings/Main.Designer.cs

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

21 changes: 9 additions & 12 deletions src/Settings/Main.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
Expand All @@ -8,9 +8,9 @@
using System.Threading.Tasks;
using System.IO;
using System.Windows.Forms;
using System.Diagnostics;

using Newtonsoft.Json;
using System.Diagnostics;

namespace Settings
{
Expand Down Expand Up @@ -85,17 +85,14 @@ bool LoadSettings()
activeCheckBox.Checked = settings.active;
disableScCheckBox.Checked = settings.disable_shortcuts;

switch (settings.rotation_style)
{
case 0:
rotStyleBox.Text = "Linear";
break;
case 1:
rotStyleBox.Text = "Smooth";
break;
}
if (settings.rotation_style < 0 || settings.rotation_style > 2)
{
settings.rotation_style = 1;
}

rotStyleBox.SelectedIndex = settings.rotation_style;

if (settings.speed > speedTrackBar.Maximum)
if (settings.speed > speedTrackBar.Maximum)
{
MessageBox.Show("Speed value is too high!", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Close();
Expand Down
4 changes: 2 additions & 2 deletions src/Settings/Main.resx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Expand Down Expand Up @@ -117,4 +117,4 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
</root>
Loading

0 comments on commit d385485

Please sign in to comment.