Fix error popup in replay editor being off-screen
This commit is contained in:
@@ -158,14 +158,19 @@ public class GuiEditReplay extends AbstractGuiPopup<GuiEditReplay> {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
MarkerProcessor.apply(inputPath, progressPopup.progressBar::setProgress);
|
MarkerProcessor.apply(inputPath, progressPopup.progressBar::setProgress);
|
||||||
} catch (Throwable e) {
|
|
||||||
Utils.error(ReplayModEditor.LOGGER, this, CrashReport.create(e, "Running marker processor"), this::close);
|
|
||||||
}
|
|
||||||
|
|
||||||
ReplayMod.instance.runLater(() -> {
|
ReplayMod.instance.runLater(() -> {
|
||||||
progressPopup.close();
|
progressPopup.close();
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
|
} catch (Throwable e) {
|
||||||
|
e.printStackTrace(); // in case runLater fails
|
||||||
|
CrashReport crashReport = CrashReport.create(e, "Running marker processor");
|
||||||
|
ReplayMod.instance.runLater(() -> Utils.error(ReplayModEditor.LOGGER, this, crashReport, () -> {
|
||||||
|
progressPopup.close();
|
||||||
|
close();
|
||||||
|
}));
|
||||||
|
}
|
||||||
}).start();
|
}).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user