Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mihai.herda
keyjoana
Commits
434d47af
Commit
434d47af
authored
Nov 19, 2019
by
Joachim Müssig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add error colored error message
parent
bce504ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/gui/asynctaskhandler/AsyncCreateDisproSaveStr.java
src/gui/asynctaskhandler/AsyncCreateDisproSaveStr.java
+7
-1
No files found.
src/gui/asynctaskhandler/AsyncCreateDisproSaveStr.java
View file @
434d47af
...
...
@@ -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
);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment