Skip to content

Commit

Permalink
Cleanup, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Jun 27, 2018
1 parent 2d5688a commit 2aad28d
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import bisq.core.offer.Offer;
import bisq.core.user.Preferences;

import bisq.common.UserThread;
import bisq.common.util.Utilities;

import javafx.animation.Interpolator;
Expand Down Expand Up @@ -59,6 +60,7 @@
import javafx.util.Duration;

import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;

import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -194,9 +196,14 @@ private void addContent() {

keyEventEventHandler = event -> {
if (Utilities.isAltOrCtrlPressed(KeyCode.R, event)) {
new SendPrivateNotificationWindow(offer.getPubKeyRing(), offer.getMakerNodeAddress(), useDevPrivilegeKeys)
.onAddAlertMessage(privateNotificationManager::sendPrivateNotificationMessageIfKeyIsValid)
.show();
// We need to close first our current popup and the open delayed the new one,
// otherwise the text input handler does not work.
doClose();
UserThread.runAfter(() -> {
new SendPrivateNotificationWindow(offer.getPubKeyRing(), offer.getMakerNodeAddress(), useDevPrivilegeKeys)
.onAddAlertMessage(privateNotificationManager::sendPrivateNotificationMessageIfKeyIsValid)
.show();
}, 100, TimeUnit.MILLISECONDS);
}
};
}
Expand Down

0 comments on commit 2aad28d

Please sign in to comment.