diff --git a/OneDriveBully/MyFunctions.cs b/OneDriveBully/MyFunctions.cs index b295a15..ddeffdd 100644 --- a/OneDriveBully/MyFunctions.cs +++ b/OneDriveBully/MyFunctions.cs @@ -20,7 +20,6 @@ public class MyFunctions //Timer Variables private System.Timers.Timer MyTimer; - private Int32 interval; private Int32 timeRemaining; public void initApp() @@ -28,7 +27,7 @@ public void initApp() initTimer(); checkUserSettings(); if (UserDefinedSettingsExist) - { + { setTimerInterval(Properties.Settings.Default.TimerInterval); } } @@ -101,8 +100,8 @@ public void setTimerInterval(Int32 newInterval) } else { - interval = newInterval * 60 * 1000; - MyTimer.Interval = interval; + timeRemaining = newInterval * 60 * 1000; + MyTimer.Interval = 1 * 60 * 1000; //Check timer every 1 minute stopTimer(); startTimer(); @@ -114,7 +113,6 @@ public void startTimer() MyTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); MyTimer.Enabled = true; - timeRemaining = interval; UpdateIconText(0); } @@ -130,7 +128,6 @@ private void OnTimedEvent(object source, ElapsedEventArgs e) if (timeRemaining <= 0) { bullyNow(); - timeRemaining = interval; } UpdateIconText(0); } diff --git a/OneDriveBully/Properties/AssemblyInfo.cs b/OneDriveBully/Properties/AssemblyInfo.cs index 0625fd7..e9b2ad4 100644 --- a/OneDriveBully/Properties/AssemblyInfo.cs +++ b/OneDriveBully/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // 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.1.0.0")] -[assembly: AssemblyFileVersion("1.1.0.0")] +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")]