Browse Source

If updater.autoupdate = true, the updater will automatically install all updates

git-svn-id: http://svn.dmdirc.com/trunk@3400 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
bf0f182c71
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/com/dmdirc/updater/UpdateChecker.java

+ 5
- 1
src/com/dmdirc/updater/UpdateChecker.java View File

@@ -176,11 +176,15 @@ public final class UpdateChecker implements Runnable {
176 176
         }
177 177
 
178 178
         mutex.release();
179
-
179
+        
180 180
         UpdateChecker.init();
181 181
 
182 182
         IdentityManager.getConfigIdentity().setOption("updater",
183 183
                 "lastcheck", String.valueOf((int) (new Date().getTime() / 1000)));
184
+        
185
+        if (config.getOptionBool("updater", "autoupdate", false)) {
186
+            applyUpdates();
187
+        }        
184 188
     }
185 189
 
186 190
     /**

Loading…
Cancel
Save