Run video rendering from runLater

Prevents any issues arising from the fact that we would otherwise be somewhere
deep in the GUI lib button handling call stack.
This commit is contained in:
Jonas Herzig
2020-04-07 14:51:16 +02:00
parent 3f4156b91b
commit 3be3072082
3 changed files with 8 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ package com.replaymod.render.gui;
import com.google.common.collect.Iterables;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.replaymod.core.ReplayMod;
import com.replaymod.core.utils.Utils;
import com.replaymod.render.ReplayModRender;
import com.replaymod.render.VideoWriter;
@@ -196,7 +197,7 @@ public class GuiRenderQueue extends AbstractGuiPopup<GuiRenderQueue> {
renderButton.onClick(() -> {
LOGGER.trace("Render button clicked");
processQueue(queue);
ReplayMod.instance.runLater(() -> processQueue(queue));
});
updateButtons();