mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-10 09:01:24 +00:00
Various display fixes
This commit is contained in:
3 files changed
+7
-15
No files matched your search
@@ -40,8 +40,8 @@ public class LoadingOverlayComp extends RegionBuilder<StackPane> {
|
||||
loadingOverlay.getChildren().add(loading);
|
||||
}
|
||||
loadingOverlay.getStyleClass().add("loading-comp");
|
||||
loadingOverlay.setVisible(showIcon && this.loading.getValue());
|
||||
loadingOverlay.setManaged(showIcon && this.loading.getValue());
|
||||
loadingOverlay.setVisible(this.loading.getValue());
|
||||
loadingOverlay.setManaged(this.loading.getValue());
|
||||
|
||||
var listener = new ChangeListener<Boolean>() {
|
||||
@Override
|
||||
|
||||
@@ -54,8 +54,6 @@ public class StoreEntryInformation {
|
||||
|
||||
if (s.getOsName() != null) {
|
||||
l.add(StoreEntryBadge.ofSystemName(s.getOsType(), s.getOsName()));
|
||||
} else if (s instanceof ShellStoreState sss && sss.getRunning() != null && sss.getRunning()) {
|
||||
// Don't add anything
|
||||
} else if (s.getShellDialect() == null && s.getOsName() == null) {
|
||||
l.add(StoreEntryBadge.ofUnknownSystemName().withCompressBehaviour(StoreEntryBadge.CompressBehaviour.HIDE));
|
||||
}
|
||||
|
||||
@@ -171,12 +171,6 @@ public class StoreEntryWrapper {
|
||||
shownName.setValue(
|
||||
AppPrefs.get().censorMode().get() ? "*".repeat(name.getValue().length()) : name.getValue());
|
||||
|
||||
if (effectiveBusyProviderBound && !getValidity().getValue().isUsable()) {
|
||||
this.effectiveBusyProviderBound = false;
|
||||
this.effectiveBusy.unbind();
|
||||
this.effectiveBusy.bind(busy);
|
||||
}
|
||||
|
||||
lastAccess.setValue(entry.getLastAccess());
|
||||
disabled.setValue(entry.isDisabled());
|
||||
validity.setValue(entry.getValidity());
|
||||
@@ -342,16 +336,16 @@ public class StoreEntryWrapper {
|
||||
}
|
||||
}
|
||||
|
||||
if (!effectiveBusyProviderBound && getValidity().getValue().isUsable()) {
|
||||
if (effectiveBusyProviderBound && !getValidity().getValue().isUsable()) {
|
||||
this.effectiveBusyProviderBound = false;
|
||||
this.effectiveBusy.unbind();
|
||||
this.effectiveBusy.bind(busy);
|
||||
} else if (!effectiveBusyProviderBound && getValidity().getValue().isUsable()) {
|
||||
this.effectiveBusyProviderBound = true;
|
||||
this.effectiveBusy.unbind();
|
||||
this.effectiveBusy.bind(busy.or(getEntry().getProvider().busy(this)));
|
||||
}
|
||||
|
||||
if (!this.effectiveBusy.isBound() && !getValidity().getValue().isUsable()) {
|
||||
this.effectiveBusy.bind(busy);
|
||||
}
|
||||
|
||||
// The property values are only registered as changed once they are queried
|
||||
// If we use information bindings that depend on some of these properties
|
||||
// but use the store methods to retrieve data instead of the wrapper properties,
|
||||
|
||||
Reference in new issue
Block a user