1
0
Fork 0
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:
crschnick 2025-03-21 09:09:51 +00:00
parent f5543beb71
commit 9dc368ae7b

View file

@ -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);
});
});
});
});
}