mirror of
https://github.com/xpipe-io/xpipe.git
synced 2025-04-22 12:13:25 +00:00
Delay list box order updates
This commit is contained in:
parent
f5543beb71
commit
9dc368ae7b
1 changed files with 6 additions and 1 deletions
|
@ -150,8 +150,13 @@ public class ListBoxViewComp<T> extends Comp<CompStructure<ScrollPane>> {
|
|||
});
|
||||
if (StoreViewState.get() != null) {
|
||||
StoreViewState.get().getSortMode().addListener((observable, oldValue, newValue) -> {
|
||||
// This is very ugly, but it just takes multiple iterations for the order to apply
|
||||
Platform.runLater(() -> {
|
||||
dirty.set(true);
|
||||
Platform.runLater(() -> {
|
||||
Platform.runLater(() -> {
|
||||
dirty.set(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue