Commit 434d47af authored by Joachim Müssig's avatar Joachim Müssig

Add error colored error message

parent bce504ff
......@@ -7,6 +7,8 @@ package gui.asynctaskhandler;
import java.util.function.BiConsumer;
import com.sun.prism.paint.Color;
import gui.CurrentActionLogger;
import javafx.application.Platform;
import joanakey.errorhandling.ErrorLogger;
......@@ -48,7 +50,11 @@ public class AsyncCreateDisproSaveStr implements Runnable {
ErrorLogger.ErrorTypes.ERROR_CREATING_SAVE_STR_FOR_DISPRO);
}
Platform.runLater(() -> {
actionLogger.endProgress();
if (succes) {
actionLogger.endProgress();
} else {
actionLogger.endProgressWithMessage("Error while trying to create storage String", javafx.scene.paint.Color.RED);
}
uiThreadCallback.accept(saveStr, succes);
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment