OSDN Git Service

fix: triage #18
authorhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Mon, 11 Oct 2021 08:29:51 +0000 (17:29 +0900)
committerhizumiaoba <56146205+hizumiaoba@users.noreply.github.com>
Mon, 11 Oct 2021 08:29:51 +0000 (17:29 +0900)
src/com/ranfa/main/DelesteRandomSelector.java

index aecd0a3..ae7b674 100644 (file)
@@ -124,8 +124,9 @@ public class DelesteRandomSelector extends JFrame {
                                + "\nSong Limit: " + property.getSongLimit()
                                + "\nSaveScoreLog: " + property.isSaveScoreLog()
                                + "\nOutputDebugSentences: " + property.isOutputDebugSentences());
-               if(property.isCheckVersion())
-                       CheckVersion.needToBeUpdated();
+               if(property.isCheckVersion()) {
+                       CompletableFuture<Void> softwareUpdateFuture = CompletableFuture.runAsync(() -> CheckVersion.needToBeUpdated(), es);
+               }
                BiConsumer<ArrayList<Song>, ArrayList<Song>> updateConsumer = (list1, list2) -> {
                        LimitedLog.println(this.getClass() + ":[INFO]: " + "Checking database updates...");
                        if(list1.size() > list2.size()) {