mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-23 23:20:42 -04:00
Cleanups
This commit is contained in:
parent
bab70abf9e
commit
42c225f14f
8 changed files with 19 additions and 21 deletions
|
@ -163,17 +163,11 @@ public class BitsquareApp extends Application {
|
|||
|
||||
primaryStage.setOnCloseRequest(event -> {
|
||||
event.consume();
|
||||
if (BitsquareApp.IS_RELEASE_VERSION)
|
||||
stop(); // systemTray.hideStage(); TODO issues with some linux systems (https://github.com/bitsquare/bitsquare/issues/350)
|
||||
else
|
||||
stop();
|
||||
stop();
|
||||
});
|
||||
scene.addEventHandler(KeyEvent.KEY_RELEASED, keyEvent -> {
|
||||
if (new KeyCodeCombination(KeyCode.W, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) {
|
||||
if (BitsquareApp.IS_RELEASE_VERSION)
|
||||
stop(); //systemTray.hideStage(); TODO issues with some linux systems (https://github.com/bitsquare/bitsquare/issues/350)
|
||||
else
|
||||
stop();
|
||||
stop();
|
||||
} else if (new KeyCodeCombination(KeyCode.Q, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) {
|
||||
stop();
|
||||
} else if (new KeyCodeCombination(KeyCode.E, KeyCombination.SHORTCUT_DOWN).match(keyEvent)) {
|
||||
|
|
|
@ -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
|
||||
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())
|
||||
new Popup().warning("You have already funds paid in.\nIn the <Funds/Open for withdrawal> section you can withdraw those funds.").show();*/
|
||||
|
|
|
@ -734,8 +734,8 @@ public abstract class Overlay<T extends Overlay> {
|
|||
}
|
||||
|
||||
protected void setTruncatedMessage() {
|
||||
if (message != null && message.length() > 1200)
|
||||
truncatedMessage = StringUtils.abbreviate(message, 1200);
|
||||
if (message != null && message.length() > 1500)
|
||||
truncatedMessage = StringUtils.abbreviate(message, 1500);
|
||||
else
|
||||
truncatedMessage = message;
|
||||
}
|
||||
|
|
|
@ -20,12 +20,12 @@ public class TacWindow extends Overlay<TacWindow> {
|
|||
public TacWindow(Preferences preferences) {
|
||||
this.preferences = preferences;
|
||||
type = Type.Attention;
|
||||
width = 800;
|
||||
}
|
||||
|
||||
public void showIfNeeded() {
|
||||
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, " +
|
||||
"express or implied, including but not limited to the warranties of " +
|
||||
"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, " +
|
||||
"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" +
|
||||
"3. The user confirms that he has read and agreed to the rules defined in our " +
|
||||
"Wiki regrading the dispute process\n" +
|
||||
"(https://github.com/bitsquare/bitsquare/wiki/Arbitration-system).";
|
||||
"3. The user confirms that he has read and agreed to the rules regrading the dispute process:\n" +
|
||||
" - You must finalize trades within the maximum duration specified for each payment method.\n" +
|
||||
" - 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);
|
||||
actionButtonText("I agree");
|
||||
closeButtonText("I disagree and quit");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue