浏览代码

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 年前
父节点
当前提交
bf0f182c71
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      src/com/dmdirc/updater/UpdateChecker.java

+ 5
- 1
src/com/dmdirc/updater/UpdateChecker.java 查看文件

@@ -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
     /**

正在加载...
取消
保存