Skip to content
Snippets Groups Projects
Commit 3e3b4ab4 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

actualise state in open window

parent dc1f37dd
No related branches found
No related tags found
1 merge request!14Iss1026
......@@ -2,10 +2,16 @@ package cz.it4i.fiji.haas.ui;
import java.util.function.Function;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javafx.beans.value.ObservableValueBase;
public class UpdatableObservableValue<T> extends ObservableValueBase<T> {
@SuppressWarnings("unused")
private static Logger log = LoggerFactory.getLogger(cz.it4i.fiji.haas.ui.UpdatableObservableValue.class);
public enum UpdateStatus {
Deleted, Updated, NotUpdated
}
......
......@@ -96,6 +96,7 @@ public class BenchmarkJobManager {
}
private synchronized CompletableFuture<JobState> doGetStateAsync(Executor executor) {
job.updateInfo();
JobState state = job.getState();
if (state != JobState.Finished) {
return CompletableFuture.completedFuture(state);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment