mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Merge pull request #3255 from ripcurlx/update-data-stores-and-dates-for-v1.1.6
Update data stores and dates for v1.1.6
This commit is contained in:
commit
e6179990bd
@ -33,7 +33,7 @@ import java.util.Map;
|
||||
public class OfferRestrictions {
|
||||
// The date when traders who have not updated cannot take offers from updated clients and their offers become
|
||||
// invisible for updated clients.
|
||||
private static final Date REQUIRE_UPDATE_DATE = Utilities.getUTCDate(2019, GregorianCalendar.SEPTEMBER, 1);
|
||||
private static final Date REQUIRE_UPDATE_DATE = Utilities.getUTCDate(2019, GregorianCalendar.SEPTEMBER, 19);
|
||||
|
||||
static boolean requiresUpdate() {
|
||||
return new Date().after(REQUIRE_UPDATE_DATE);
|
||||
|
@ -67,7 +67,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
|
||||
public final class MediationManager extends DisputeManager<MediationDisputeList> {
|
||||
|
||||
// The date when mediation is activated
|
||||
private static final Date MEDIATION_ACTIVATED_DATE = Utilities.getUTCDate(2019, GregorianCalendar.SEPTEMBER, 1);
|
||||
private static final Date MEDIATION_ACTIVATED_DATE = Utilities.getUTCDate(2019, GregorianCalendar.SEPTEMBER, 26);
|
||||
|
||||
public static boolean isMediationActivated() {
|
||||
return new Date().after(MEDIATION_ACTIVATED_DATE);
|
||||
|
@ -32,14 +32,11 @@ import bisq.core.support.dispute.DisputeResult;
|
||||
import bisq.core.support.dispute.mediation.MediationManager;
|
||||
import bisq.core.trade.Contract;
|
||||
import bisq.core.trade.Trade;
|
||||
import bisq.core.user.DontShowAgainLookup;
|
||||
import bisq.core.user.Preferences;
|
||||
|
||||
import bisq.common.ClockWatcher;
|
||||
import bisq.common.UserThread;
|
||||
import bisq.common.app.Version;
|
||||
import bisq.common.util.Tuple3;
|
||||
import bisq.common.util.Utilities;
|
||||
|
||||
import de.jensd.fx.fontawesome.AwesomeDude;
|
||||
import de.jensd.fx.fontawesome.AwesomeIcon;
|
||||
@ -51,8 +48,6 @@ import javafx.scene.control.Label;
|
||||
import javafx.scene.control.ProgressBar;
|
||||
import javafx.scene.control.ScrollPane;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.input.KeyCode;
|
||||
import javafx.scene.input.KeyEvent;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.scene.layout.ColumnConstraints;
|
||||
import javafx.scene.layout.GridPane;
|
||||
@ -67,8 +62,6 @@ import org.fxmisc.easybind.Subscription;
|
||||
|
||||
import javafx.beans.value.ChangeListener;
|
||||
|
||||
import javafx.event.EventHandler;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
@ -101,8 +94,6 @@ public abstract class TradeStepView extends AnchorPane {
|
||||
protected Label infoLabel;
|
||||
private Overlay acceptMediationResultPopup;
|
||||
|
||||
// TODO remove before release. Only in for making dev testing easier
|
||||
private EventHandler<KeyEvent> keyEventEventHandler;
|
||||
private Scene scene;
|
||||
|
||||
|
||||
@ -165,39 +156,9 @@ public abstract class TradeStepView extends AnchorPane {
|
||||
updateTimeLeft();
|
||||
}
|
||||
};
|
||||
|
||||
// TODO remove before relase. Only in for making dev testing easier
|
||||
if (Version.VERSION.equals("1.1.5")) {
|
||||
keyEventEventHandler = keyEvent -> {
|
||||
String key;
|
||||
if (Utilities.isAltOrCtrlPressed(KeyCode.UP, keyEvent)) {
|
||||
if (trade.getTradePeriodState() == Trade.TradePeriodState.FIRST_HALF) {
|
||||
trade.setTradePeriodState(Trade.TradePeriodState.SECOND_HALF);
|
||||
} else if (trade.getTradePeriodState() == Trade.TradePeriodState.SECOND_HALF) {
|
||||
trade.setTradePeriodState(Trade.TradePeriodState.TRADE_PERIOD_OVER);
|
||||
}
|
||||
} else if (Utilities.isAltOrCtrlPressed(KeyCode.DOWN, keyEvent)) {
|
||||
if (trade.getTradePeriodState() == Trade.TradePeriodState.TRADE_PERIOD_OVER) {
|
||||
trade.setTradePeriodState(Trade.TradePeriodState.SECOND_HALF);
|
||||
key = "displayTradePeriodOver" + trade.getId();
|
||||
DontShowAgainLookup.dontShowAgain(key, false);
|
||||
} else if (trade.getTradePeriodState() == Trade.TradePeriodState.SECOND_HALF) {
|
||||
trade.setTradePeriodState(Trade.TradePeriodState.FIRST_HALF);
|
||||
key = "displayHalfTradePeriodOver" + trade.getId();
|
||||
DontShowAgainLookup.dontShowAgain(key, false);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public void activate() {
|
||||
// TODO remove before relase. Only in for making dev testing easier
|
||||
scene = getScene();
|
||||
if (Version.VERSION.equals("1.1.5") && scene != null) {
|
||||
getScene().addEventHandler(KeyEvent.KEY_RELEASED, keyEventEventHandler);
|
||||
}
|
||||
|
||||
if (txIdTextField != null) {
|
||||
if (txIdSubscription != null)
|
||||
txIdSubscription.unsubscribe();
|
||||
@ -249,11 +210,6 @@ public abstract class TradeStepView extends AnchorPane {
|
||||
}
|
||||
|
||||
public void deactivate() {
|
||||
// TODO remove before relase. Only in for making dev testing easier
|
||||
if (Version.VERSION.equals("1.1.5") && scene != null) {
|
||||
scene.removeEventHandler(KeyEvent.KEY_RELEASED, keyEventEventHandler);
|
||||
}
|
||||
|
||||
if (txIdSubscription != null)
|
||||
txIdSubscription.unsubscribe();
|
||||
|
||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue
Block a user