소스 검색

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

Loading…
취소
저장