Skip to content

Commit

Permalink
#154 set adjusted fee before showing donate button
Browse files Browse the repository at this point in the history
  • Loading branch information
jim618 committed Feb 23, 2015
1 parent 4d2df95 commit 054a5d5
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public void initialiseContent(JPanel contentPanel) {

contentPanel.setLayout(new MigLayout(
Panels.migXYLayout(),
"[][]", // Column constraints
"[]5[]10[]5[]20[]5[]" // Row constraints
"[]20[]", // Column constraints
"[]2[]8[]2[]12[]2[]" // Row constraints
));

WalletConfiguration walletConfiguration = Configurations.currentConfiguration.getWallet().deepCopy();
Expand Down Expand Up @@ -132,9 +132,11 @@ public void initialiseContent(JPanel contentPanel) {
Action donateAction = new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
log.debug("Saw action event {}", e);

try {
setChosenFee();
// Set the new feePerKB
Configurations.currentConfiguration.getWallet().setFeePerKB(configuration.getWallet().getFeePerKB());

Panels.hideLightBoxIfPresent();

SendBitcoinParameter donateParameter = new SendBitcoinParameter(Optional.of(new BitcoinURI("bitcoin:" + FeeService.DONATION_ADDRESS + "?amount=" + FeeService.DEFAULT_DONATION_AMOUNT)));
Expand Down

0 comments on commit 054a5d5

Please sign in to comment.