mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 13:45:09 +00:00
Issue #713 Installer downloading of parts like SWC file can be skipped
moving auto update check to separate thread for faster loading
This commit is contained in:
@@ -1250,7 +1250,15 @@ public class Main {
|
||||
if (Configuration.checkForUpdatesAuto.get()) {
|
||||
Calendar lastUpdatesCheckDate = Configuration.lastUpdatesCheckDate.get();
|
||||
if ((lastUpdatesCheckDate == null) || (lastUpdatesCheckDate.getTime().getTime() < Calendar.getInstance().getTime().getTime() - Configuration.checkForUpdatesDelay.get())) {
|
||||
checkForUpdates();
|
||||
new SwingWorker(){
|
||||
@Override
|
||||
protected Object doInBackground() throws Exception {
|
||||
checkForUpdates();
|
||||
return null;
|
||||
}
|
||||
}.execute();
|
||||
System.out.println("finished");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user