Minor bug fixes for XMR tx proof feature

Fix missing CSS color code xmr-orange, was missing from dark mode.

Fix log message spelling/typo errors.

Removed 2 fixes from SellerStep3View so that chimp1984 can make
changes.

Remove address validator from XMR service address settings because
it does not support https prefix.
This commit is contained in:
jmacxx 2020-09-06 20:54:31 -05:00
parent cafbbdf94c
commit f49aa0f674
No known key found for this signature in database
GPG Key ID: 155297BABFE94A1B
4 changed files with 6 additions and 5 deletions

View File

@ -199,7 +199,7 @@ class XmrTxProofRequest implements AssetTxProofRequest<XmrTxProofRequest.Result>
String prettyJson = new GsonBuilder().setPrettyPrinting().create().toJson(new JsonParser().parse(json));
log.info("Response json from {}\n{}", this, prettyJson);
} catch (Throwable error) {
log.error("Pretty rint caused a {}}: raw josn={}", error, json);
log.error("Pretty print caused a {}: raw json={}", error, json);
}
Result result = parser.parse(model, json);

View File

@ -667,13 +667,11 @@ public class PreferencesView extends ActivatableViewAndModel<GridPane, Preferenc
autoConfTradeLimitTf.setValidator(new BtcValidator(formatter));
autoConfServiceAddressTf = addInputTextField(autoConfirmGridPane, ++localRowIndex, Res.get("setting.preferences.autoConfirmServiceAddresses"));
autoConfServiceAddressTf.setValidator(GUIUtil.addressRegexValidator());
autoConfServiceAddressTf.setErrorMessage(Res.get("validation.invalidAddressList"));
GridPane.setHgrow(autoConfServiceAddressTf, Priority.ALWAYS);
displayCurrenciesGridRowIndex += 4;
autoConfServiceAddressListener = (observable, oldValue, newValue) -> {
if (!newValue.equals(oldValue) && autoConfServiceAddressTf.getValidator().validate(newValue).isValid) {
if (!newValue.equals(oldValue)) {
List<String> serviceAddresses = Arrays.asList(StringUtils.deleteWhitespace(newValue).split(","));
// revert to default service providers when user empties the list
if (serviceAddresses.size() == 1 && serviceAddresses.get(0).isEmpty()) {

View File

@ -139,6 +139,9 @@
/* dao chart colors */
-bs-chart-dao-line1: -bs-color-green-5;
-bs-chart-dao-line2: -bs-color-blue-2;
/* Monero orange color code */
-xmr-orange: #f26822;
}
/* table view */

View File

@ -268,7 +268,7 @@ public class TorNetworkNode extends NetworkNode {
hiddenServiceSocket.addReadyListener(socket -> {
try {
log.info("\n################################################################\n" +
"Tor hidden service published after {} ms. Socked={}\n" +
"Tor hidden service published after {} ms. Socket={}\n" +
"################################################################",
(new Date().getTime() - ts2), socket); //takes usually 30-40 sec
new Thread() {