mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 00:04:55 +00:00
various minor ui fixes including update screens after includemempooloutputs changed
This commit is contained in:
+1
-1
Submodule drongo updated: b0d37fe8fe...0a43f9f6a8
@@ -0,0 +1,8 @@
|
||||
package com.sparrowwallet.sparrow.event;
|
||||
|
||||
/**
|
||||
* Empty class to indicate the includeMempoolOutputs config setting has changed
|
||||
*/
|
||||
public class IncludeMempoolOutputsChangedEvent {
|
||||
|
||||
}
|
||||
@@ -119,6 +119,7 @@ public class GeneralPreferencesController extends PreferencesDetailController {
|
||||
});
|
||||
includeMempoolOutputs.selectedProperty().addListener((observableValue, oldValue, newValue) -> {
|
||||
config.setIncludeMempoolOutputs(newValue);
|
||||
EventManager.get().post(new IncludeMempoolOutputsChangedEvent());
|
||||
});
|
||||
|
||||
notifyNewTransactions.setSelected(config.isNotifyNewTransactions());
|
||||
|
||||
@@ -289,6 +289,8 @@ public class PaymentController extends WalletFormController implements Initializ
|
||||
|
||||
fiatAmount.setText("");
|
||||
setSendMax(false);
|
||||
|
||||
amountStatus.setVisible(false);
|
||||
}
|
||||
|
||||
public void setMaxInput(ActionEvent event) {
|
||||
|
||||
@@ -338,7 +338,7 @@ public class SendController extends WalletFormController implements Initializabl
|
||||
setTargetBlocks(getTargetBlocks(feeRate));
|
||||
setFeeRangeRate(feeRate);
|
||||
|
||||
if(walletTransaction.getFee() != getFeeValueSats()) {
|
||||
if(walletTransaction.getFee() != getFeeValueSats() && feeRate > getMinimumFeeRate()) {
|
||||
setFeeValueSats(walletTransaction.getFee());
|
||||
}
|
||||
} else {
|
||||
@@ -1033,4 +1033,9 @@ public class SendController extends WalletFormController implements Initializabl
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void includeMempoolOutputsChangedEvent(IncludeMempoolOutputsChangedEvent event) {
|
||||
updateTransaction();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Collections;
|
||||
import java.util.Locale;
|
||||
import java.util.ResourceBundle;
|
||||
|
||||
@@ -226,4 +227,9 @@ public class TransactionsController extends WalletFormController implements Init
|
||||
transactionsTable.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void includeMempoolOutputsChangedEvent(IncludeMempoolOutputsChangedEvent event) {
|
||||
walletHistoryChanged(new WalletHistoryChangedEvent(getWalletForm().getWallet(), getWalletForm().getStorage(), Collections.emptyList()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,4 +160,9 @@ public class UtxosController extends WalletFormController implements Initializab
|
||||
utxosTable.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void includeMempoolOutputsChangedEvent(IncludeMempoolOutputsChangedEvent event) {
|
||||
utxosTable.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user