mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +01:00
Add requestFocus call to createOfferView as well
Move method to base class
This commit is contained in:
parent
9778950018
commit
c1e470d6f7
@ -386,4 +386,10 @@ public abstract class BsqSwapOfferView<M extends BsqSwapOfferViewModel<?>> exten
|
||||
}
|
||||
|
||||
protected abstract void checkForMissingFunds(Coin newValue);
|
||||
|
||||
protected void requestFocus() {
|
||||
// JFXComboBox causes a bug with requesting focus. Not clear why that happens but requesting a focus
|
||||
// on our view here avoids that the currency List overlay gets displayed.
|
||||
root.requestFocus();
|
||||
}
|
||||
}
|
||||
|
@ -233,10 +233,12 @@ public class BsqSwapCreateOfferView extends BsqSwapOfferView<BsqSwapCreateOfferV
|
||||
|
||||
if (DevEnv.isDevMode()) {
|
||||
model.onPlaceOffer();
|
||||
requestFocus();
|
||||
return;
|
||||
}
|
||||
|
||||
bsqSwapOfferDetailsWindow.onPlaceOffer(model::onPlaceOffer).show(model.dataModel.offer);
|
||||
requestFocus();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -296,11 +296,6 @@ public class BsqSwapTakeOfferView extends BsqSwapOfferView<BsqSwapTakeOfferViewM
|
||||
offerDetailsWindowDisplayed = true;
|
||||
}
|
||||
|
||||
private void requestFocus() {
|
||||
// JFXComboBox causes a bug with requesting focus. Not clear why that happens but requesting a focus
|
||||
// on our view here avoids that the currency List overlay gets displayed.
|
||||
root.requestFocus();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCancel2() {
|
||||
|
Loading…
Reference in New Issue
Block a user