This commit is contained in:
Manfred Karrer 2016-03-11 00:03:31 +01:00
parent bab70abf9e
commit 42c225f14f
8 changed files with 19 additions and 21 deletions

View file

@ -63,7 +63,7 @@ public class Log {
logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME); logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
//TODO for now use always trace //TODO for now use always trace
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.TRACE); logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.INFO);
// logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.DEBUG); // logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.DEBUG);
logbackLogger.addAppender(appender); logbackLogger.addAppender(appender);
} }

View file

@ -25,8 +25,6 @@ public final class OKPayAccountContractData extends PaymentAccountContractData {
private String accountNr; private String accountNr;
// TODO refactor PaymentAccountContractData to avoid null values (countryCode, country, selectedTradeCountry)
public OKPayAccountContractData(String paymentMethod, String id, int maxTradePeriod) { public OKPayAccountContractData(String paymentMethod, String id, int maxTradePeriod) {
super(paymentMethod, id, maxTradePeriod); super(paymentMethod, id, maxTradePeriod);
} }

View file

@ -95,7 +95,8 @@ public class SetupDepositBalanceListener extends TradeTask {
trade.setState(Trade.State.DEPOSIT_SEEN_IN_NETWORK); trade.setState(Trade.State.DEPOSIT_SEEN_IN_NETWORK);
} else if (tradeState.getPhase() == Trade.Phase.PREPARATION) { } else if (tradeState.getPhase() == Trade.Phase.PREPARATION) {
processModel.getTradeManager().removePreparedTrade(trade); processModel.getTradeManager().removePreparedTrade(trade);
} else if (tradeState.getPhase().ordinal() < Trade.Phase.DEPOSIT_PAID.ordinal()) { // TODO need to evaluate if that is correct } else if (tradeState.getPhase().ordinal() < Trade.Phase.DEPOSIT_PAID.ordinal()) {
// TODO need to evaluate if that is correct
processModel.getTradeManager().addTradeToFailedTrades(trade); processModel.getTradeManager().addTradeToFailedTrades(trade);
} }
} }

View file

@ -34,7 +34,7 @@ public class VerifyTakeOfferFeePayment extends TradeTask {
protected void run() { protected void run() {
try { try {
runInterceptHook(); runInterceptHook();
//TODO mocked yet, need a confidence listeners //TODO missing impl.
// int numOfPeersSeenTx = processModel.getWalletService().getNumOfPeersSeenTx(processModel.getTakeOfferFeeTxId()); // int numOfPeersSeenTx = processModel.getWalletService().getNumOfPeersSeenTx(processModel.getTakeOfferFeeTxId());
/* if (numOfPeersSeenTx > 2) { /* if (numOfPeersSeenTx > 2) {
resultHandler.handleResult(); resultHandler.handleResult();

View file

@ -163,17 +163,11 @@ public class BitsquareApp extends Application {
primaryStage.setOnCloseRequest(event -> { primaryStage.setOnCloseRequest(event -> {
event.consume(); event.consume();
if (BitsquareApp.IS_RELEASE_VERSION) stop();
stop(); // systemTray.hideStage(); TODO issues with some linux systems (https://github.com/bitsquare/bitsquare/issues/350)
else
stop();
}); });
scene.addEventHandler(KeyEvent.KEY_RELEASED, keyEvent -> { scene.addEventHandler(KeyEvent.KEY_RELEASED, keyEvent -> {
if (new KeyCodeCombination(KeyCode.W, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) { if (new KeyCodeCombination(KeyCode.W, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) {
if (BitsquareApp.IS_RELEASE_VERSION) stop();
stop(); //systemTray.hideStage(); TODO issues with some linux systems (https://github.com/bitsquare/bitsquare/issues/350)
else
stop();
} else if (new KeyCodeCombination(KeyCode.Q, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) { } else if (new KeyCodeCombination(KeyCode.Q, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) {
stop(); stop();
} else if (new KeyCodeCombination(KeyCode.E, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) { } else if (new KeyCodeCombination(KeyCode.E, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) {

View file

@ -370,7 +370,7 @@ public class TakeOfferView extends ActivatableViewAndModel<AnchorPane, TakeOffer
// called form parent as the view does not get notified when the tab is closed // called form parent as the view does not get notified when the tab is closed
public void onClose() { public void onClose() {
// TODO need other implementation as it is displayed laso if there are old funds in the wallet // TODO need other implementation as it is displayed also if there are old funds in the wallet
/* /*
if (model.dataModel.isWalletFunded.get()) if (model.dataModel.isWalletFunded.get())
new Popup().warning("You have already funds paid in.\nIn the <Funds/Open for withdrawal> section you can withdraw those funds.").show();*/ new Popup().warning("You have already funds paid in.\nIn the <Funds/Open for withdrawal> section you can withdraw those funds.").show();*/

View file

@ -734,8 +734,8 @@ public abstract class Overlay<T extends Overlay> {
} }
protected void setTruncatedMessage() { protected void setTruncatedMessage() {
if (message != null && message.length() > 1200) if (message != null && message.length() > 1500)
truncatedMessage = StringUtils.abbreviate(message, 1200); truncatedMessage = StringUtils.abbreviate(message, 1500);
else else
truncatedMessage = message; truncatedMessage = message;
} }

View file

@ -20,12 +20,12 @@ public class TacWindow extends Overlay<TacWindow> {
public TacWindow(Preferences preferences) { public TacWindow(Preferences preferences) {
this.preferences = preferences; this.preferences = preferences;
type = Type.Attention; type = Type.Attention;
width = 800;
} }
public void showIfNeeded() { public void showIfNeeded() {
if (!preferences.getTacAccepted() && !BitsquareApp.DEV_MODE) { if (!preferences.getTacAccepted() && !BitsquareApp.DEV_MODE) {
// TODO add link: https://bitsquare.io/arbitration_system.pdf headLine("User agreement");
headLine("USER AGREEMENT");
String text = "1. This software is experimental and provided \"as is\", without warranty of any kind, " + String text = "1. This software is experimental and provided \"as is\", without warranty of any kind, " +
"express or implied, including but not limited to the warranties of " + "express or implied, including but not limited to the warranties of " +
"merchantability, fitness for a particular purpose and non-infringement.\n" + "merchantability, fitness for a particular purpose and non-infringement.\n" +
@ -33,9 +33,14 @@ public class TacWindow extends Overlay<TacWindow> {
"liability, whether in an action of contract, tort or otherwise, " + "liability, whether in an action of contract, tort or otherwise, " +
"arising from, out of or in connection with the software or the use or other dealings in the software.\n\n" + "arising from, out of or in connection with the software or the use or other dealings in the software.\n\n" +
"2. The user is responsible to use the software in compliance with local laws.\n\n" + "2. The user is responsible to use the software in compliance with local laws.\n\n" +
"3. The user confirms that he has read and agreed to the rules defined in our " + "3. The user confirms that he has read and agreed to the rules regrading the dispute process:\n" +
"Wiki regrading the dispute process\n" + " - You must finalize trades within the maximum duration specified for each payment method.\n" +
"(https://github.com/bitsquare/bitsquare/wiki/Arbitration-system)."; " - You must enter the correct reference text for your payment transfers.\n" +
" - You must cooperate with the arbitrator during the arbitration process.\n" +
" - You must reply within 48 hours to each arbitrator inquiry.\n" +
" - Failure to follow the above requirements may result in loss of your security deposit.\n\n" +
"For more details and a general overview please read the full documentation about the " +
"arbitration system and the dispute process at: https://bitsquare.io/arbitration_system.pdf";
message(text); message(text);
actionButtonText("I agree"); actionButtonText("I agree");
closeButtonText("I disagree and quit"); closeButtonText("I disagree and quit");