Commit Graph

2265 Commits

Author SHA1 Message Date
tomFlowee 2aa3bf5ab6 Small bugfixes. 2022-04-06 14:50:05 +02:00
tomFlowee fc2eaa6f5e Don't leave the initial wallet name-less. 2022-04-06 14:45:46 +02:00
tomFlowee 63715be862 Avoid memory-management issues
FloweePay is an appliction singleton and as such a global that is
deleted outside of main().

The FloweePay app owns most of the data, including (implicitly) the
private keys. Private keys are managed with a LockedPoolManager in
order to enable page-locking and avoid them being swapped out.
LockedPoolManager is also a singleton, and so we make sure that it
is created _before_ FloweePay and as a result deleted after FP
releases the memory managed by the LPM.

Singleton interactions are always a bit messy.
2022-04-06 14:34:42 +02:00
tomFlowee f487060f47 Make sure we initialize this var. 2022-04-05 22:29:39 +02:00
tomFlowee 82cb29308b When unarchiving, assign peers.
This also makes the user-option of staying offline a bool on the FloweePay
app-instance, to make sure we honor that through the lifetime.
2022-04-05 21:42:02 +02:00
tomFlowee 565e3a5574 When pasting a payment url, parse out the amount. 2022-04-05 20:16:56 +02:00
tomFlowee 6a4882b820 Rename local var to not shadow global method. 2022-04-05 18:42:55 +02:00
tomFlowee ef83bfa6d0 Pick prettier color. 2022-04-05 18:34:01 +02:00
tomFlowee 82bd43102a Make disabled tabs look disabled too.
We pick a bit darker color for the text and the hover-indicator in order
to make more clear that the tabs are not clickable.
2022-04-05 18:28:06 +02:00
tomFlowee 03875d7f7b Make archived wallets take less space. 2022-04-05 17:52:03 +02:00
tomFlowee 55a334086d Show warning for archived wallets. 2022-04-05 17:39:19 +02:00
tomFlowee b2fd3964e8 Archived accounts have limited functionality
When an archived account is selected we disable access to the
send/receive tabs.
2022-04-05 17:20:52 +02:00
tomFlowee 2835684cf3 Allow a wallet to be 'archived'.
This moves it down to the bottom of the visual screen.
2022-04-05 16:38:21 +02:00
tomFlowee 09c7798045 [minor] fix indent 2022-03-23 00:02:05 +01:00
tomFlowee 7aacb9a0d0 Start the new feature to archive accounts 2022-03-23 00:00:57 +01:00
tomFlowee b77744e527 Update version number. 2022-03-22 23:21:31 +01:00
tomFlowee 70de505e9d Fix bug; show proper type 2022-03-22 23:17:35 +01:00
tomFlowee c9c7af5180 Add support for rendering p2sh addresses.
This makes our tx-details screen also show p2sh addresses.
2022-03-22 23:15:37 +01:00
tomFlowee c4bab66465 Fix typo in var name. 2022-02-19 11:10:11 +01:00
tomFlowee d0463e6b57 Make compile after upstream refactor. 2022-01-24 12:32:07 +01:00
tomFlowee ea6c753021 Use new upsteam static-blockheaders API
This also adds a helper executable that is useful to create the meta
file.
2022-01-12 19:47:10 +01:00
tomFlowee 9a3db2cd66 Be more defensive in my code.
More assert and more checks to avoid reading when the input doesn't fit.
2021.07.1
2021-12-14 13:56:00 +01:00
tomFlowee 17d171b9df Remember collapsed state in model. 2021-12-14 13:32:58 +01:00
tomFlowee 6e4724c555 Add cash-fusion icon in overview.
This allows people to associate the fusion logo with the type of
transactions.
2021-12-14 13:26:59 +01:00
tomFlowee 8fb38bbff7 Avoid cash-fusion tx being treated like 'moved' ones. 2021-12-14 13:11:32 +01:00
tomFlowee 37ad9098f3 Fix context menu text. 2021-12-14 13:03:38 +01:00
tomFlowee aeb2d6624b Fix warning by linter. 2021-12-14 13:02:28 +01:00
tomFlowee ea18a54dc9 Avoid skipping tx-id 1 on second load. 2021-12-14 12:57:35 +01:00
tomFlowee 921b9851ff Avoid calling save twice
The destructor already calls save on each wallet.
2021-12-14 12:56:52 +01:00
tomFlowee 019c0a5b6a Hide labels when there is no content behind them. 2021-12-14 12:00:50 +01:00
tomFlowee 7b08711def Turn off data for older Qt
The problem of all outputs and inputs having zero space is now simply
worked around by not generating that data for older runtimes of Qt.
This makes it look Ok, but we indeed do not show the inputs/outputs
in the UI unless the user is running Qt 5.15 or newer.
2021-12-11 15:11:13 +01:00
tomFlowee b8851aaa9f Revert "Fix layout on older Qt (tested on 5.12.8)"
This reverts commit d8f864de03.

The commit had as a side-effect that sometimes the app would hang
in recurisvely doing layouts forever.
2021-12-11 14:57:28 +01:00
tomFlowee d18b29172f Clear commentfield for next tx 2021-12-09 22:45:26 +01:00
tomFlowee 13f6a8ea91 Fix menu text 2021-12-09 19:46:22 +01:00
tomFlowee 040a2b93a4 Use DialogButtonBox for the send/cancel pair too.
This fixes the UX issue that on Apple and on Gnome the buttons
were inconsistently placed.
2021-12-09 19:09:51 +01:00
tomFlowee 3855a4559f Create DialogButtonBox for Flowee. 2021-12-09 18:59:19 +01:00
tomFlowee 58c699796d Make sure 'max' is updated on wallet-change. 2021-12-09 18:59:19 +01:00
tomFlowee 367c64b584 Fix off-by-one in string building. 2021-12-09 18:59:19 +01:00
tomFlowee 6e43261ab0 Move formatted address feedback inside entry widget.
Also move the QML-level bool to live in the model.
2021-12-09 18:59:19 +01:00
tomFlowee c54865cef7 Make formatted address about actual changes
When the user does not actually type something that is fundamentally
changed, don't alter the 'formattedTarget' field.
2021-12-09 18:55:56 +01:00
tomFlowee 8be3ba37de Re-enable warning on btc-coin destination. 2021-12-09 18:55:56 +01:00
tomFlowee 297ae8aba0 Minor adjustment to coin selection
For single-address wallets, be a bit more agressive to ending up with
more than 5 coins.
2021-12-09 18:55:56 +01:00
tomFlowee e9462e3c8d Handle changes in the coins set. 2021.07.0 2021-12-06 12:09:46 +01:00
tomFlowee 69633afaa9 Import more translations 2021-12-04 23:32:31 +01:00
tomFlowee 569dd5c3db Cleanup 'moved' and show fees when we can.
In the overview panel we now show fees when the transaction is created
by us.
This also makes the comment for 'moved' transactions a burden, so remove
that and clean it up.
2021-12-04 20:09:43 +01:00
tomFlowee 5aa2644717 Notify the UI about transaction comments. 2021-12-04 19:13:26 +01:00
tomFlowee fb4a92aa34 On reinsert of coin-selector, uncollapsed it. 2021-12-04 18:35:06 +01:00
tomFlowee 4c86b106c0 Allow the details list to be empty. 2021-12-04 17:49:55 +01:00
tomFlowee 2d98c1d12d Fixes issue where sometimes max didn't uncheck 2021-12-04 17:14:15 +01:00
tomFlowee 7bf50081ed import translations 2021-12-04 15:52:17 +01:00