Commit f5de4bbf authored by Nils Vreman's avatar Nils Vreman
Browse files

Only markUpdate left to fix

parent be339d1d
...@@ -99,7 +99,6 @@ public class TasksetDisplay extends BoxPanel implements Observer, UpdateListener ...@@ -99,7 +99,6 @@ public class TasksetDisplay extends BoxPanel implements Observer, UpdateListener
marked = Optional.of((TaskGrid) obj); marked = Optional.of((TaskGrid) obj);
for (TaskGrid tg : gridList) { for (TaskGrid tg : gridList) {
//if (marked.map(taskgrid -> taskgrid.equals(tg)).orElse(false)) marked = Optional.of(tg);
tg.unmark(); tg.unmark();
} }
...@@ -144,6 +143,10 @@ public class TasksetDisplay extends BoxPanel implements Observer, UpdateListener ...@@ -144,6 +143,10 @@ public class TasksetDisplay extends BoxPanel implements Observer, UpdateListener
if (prio != -1) { if (prio != -1) {
taskset.removeTask(prio); taskset.removeTask(prio);
marked = Optional.empty(); marked = Optional.empty();
// Unmarks the rest of the grid
for (TaskGrid tg : gridList) {
tg.unmark();
}
} }
} catch (NoSuchElementException e) {} } catch (NoSuchElementException e) {}
} }
......
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