Disable animated progress indicator for Take offer

This commit is contained in:
jmacxx 2021-01-18 15:07:08 -06:00
parent feb88bc769
commit daf5106e84
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B
2 changed files with 10 additions and 5 deletions

View File

@ -263,7 +263,8 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
addListeners();
if (offerAvailabilityBusyAnimation != null && !model.showPayFundsScreenDisplayed.get()) {
offerAvailabilityBusyAnimation.play();
// temporarily disabled due to high CPU usage (per issue #4649)
// offerAvailabilityBusyAnimation.play();
offerAvailabilityLabel.setVisible(true);
offerAvailabilityLabel.setManaged(true);
} else {
@ -272,7 +273,8 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
}
if (waitingForFundsBusyAnimation != null && model.isWaitingForFunds.get()) {
waitingForFundsBusyAnimation.play();
// temporarily disabled due to high CPU usage (per issue #4649)
// waitingForFundsBusyAnimation.play();
waitingForFundsLabel.setVisible(true);
waitingForFundsLabel.setManaged(true);
} else {
@ -528,7 +530,8 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
cancelButton2.setVisible(true);
waitingForFundsBusyAnimation.play();
// temporarily disabled due to high CPU usage (per issue #4649)
//waitingForFundsBusyAnimation.play();
payFundsTitledGroupBg.setVisible(true);
totalToPayTextField.setVisible(true);
@ -704,7 +707,8 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
});
isWaitingForFundsSubscription = EasyBind.subscribe(model.isWaitingForFunds, isWaitingForFunds -> {
waitingForFundsBusyAnimation.play();
// temporarily disabled due to high CPU usage (per issue #4649)
// waitingForFundsBusyAnimation.play();
waitingForFundsLabel.setVisible(isWaitingForFunds);
waitingForFundsLabel.setManaged(isWaitingForFunds);
});

View File

@ -433,7 +433,8 @@ public class OfferDetailsWindow extends Overlay<OfferDetailsWindow> {
if (GUIUtil.canCreateOrTakeOfferOrShowPopup(user, navigation)) {
button.setDisable(true);
cancelButton.setDisable(true);
busyAnimation.play();
// temporarily disabled due to high CPU usage (per issue #4649)
// busyAnimation.play();
if (isPlaceOffer) {
spinnerInfoLabel.setText(Res.get("createOffer.fundsBox.placeOfferSpinnerInfo"));
placeOfferHandlerOptional.ifPresent(Runnable::run);