Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r292 - trunk/SVN_Notifier/MainForm.cs

svnnotifier
Discussion topic

Back to topic list

svn commit: r292 - trunk/SVN_Notifier/MainForm.cs

Reply

Author vlar
Full name Vlad Rudenko
Date 2010-01-08 01:22:28 PST
Message Author: vlar
Date: 2010-01-08 01:22:28-0800
New Revision: 292

Modified:
   trunk/SVN_Notifier/MainForm.cs

Log:
Bug fix: Check for new version does not work if folder list is empty

Modified: trunk/SVN_Notifier/MainForm.cs
Url: http://svnnotifier.t​igris.org/source/bro​wse/svnnotifier/trun​k/SVN_Notifier/MainF​orm.cs?view=diff​&pathrev=292&r1=​291&r2=292
====================​====================​====================​==================
--- trunk/SVN_Notifier/MainForm.cs (original)
+++ trunk/SVN_Notifier/MainForm.cs 2010-01-08 01:22:28-0800
@@ -833,7 +833,7 @@
 
         private void BeginUpdateFolderStatuses()
         {
- if (folders.Count > 0)
+ if ((folders.Count > 0) || forcedCheckForNewVersion)
             {
                 statusUpdateTimer.Stop();
 
@@ -909,7 +909,15 @@
                             UpdateFolderStatus (folder);
                     }
 
- if (Config.CheckForNewVersion && (lastTimeOfCheckForNewVersion + new TimeSpan (3, 0, 0) < DateTime.Now))
+ if (forcedCheckForNewVersion)
+ {
+ forcedCheckForNewVersion = false;
+ lastTimeOfCheckForNewVersion = DateTime.Now;
+ SafeInvoke(new SetStatusBarTextMeth​od(SetStatusBarText)​, new object[] { "Checking for new version..." });
+ CheckForNewVersion(true);
+ }
+
+ if (Config.CheckForNewVersion && (lastTimeOfCheckForNewVersion + new TimeSpan(3, 0, 0) < DateTime.Now))
                     {
                         lastTimeOfCheckForNewVersion = DateTime.Now;
                         SafeInvoke (new SetStatusBarTextMethod (SetStatusBarText), new object[] {"Checking for new version..."});

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r292 - trunk/SVN_Notifier/MainForm.cs vlar Vlad Rudenko 2010-01-08 01:22:28 PST
Messages per page: