mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +01:00
Add requestFocus call to createOfferView as well
Move method to base class
This commit is contained in:
parent
9778950018
commit
c1e470d6f7
3 changed files with 8 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue