1
0
Commit Graph

16194 Commits

Author SHA1 Message Date
Sander van Grieken
d80de3424b qml: piechart improve font rendering, use app font 2023-04-17 12:19:05 +02:00
Sander van Grieken
01b9cee643 qml: add recoverable channels warning to OpenChannelDialog 2023-04-17 11:41:02 +02:00
Sander van Grieken
93ef013111 qml: fix recoverable channels setting 2023-04-17 11:40:09 +02:00
Sander van Grieken
25c59f700c qml: ConfirmTxDialog amount fixed font 2023-04-17 10:42:55 +02:00
Sander van Grieken
1bca301661 qml: piechart visible also when only unconfirmed, add unconfirmed to legend 2023-04-17 10:35:31 +02:00
Sander van Grieken
47033369bd qml: auth.py use f'' string format notation 2023-04-17 09:43:31 +02:00
SomberNight
f528758c29 util: merge time_difference() into age(), make age() localisable
fixes https://github.com/spesmilo/electrum/issues/8304
follow-up 4d4d2e2206
2023-04-16 23:05:22 +00:00
SomberNight
12a81c1a34 tests: add tests for util.age 2023-04-16 22:43:34 +00:00
SomberNight
6b1e6f0775 follow-up prev again... 2023-04-16 21:28:24 +00:00
SomberNight
fb480fe5ed follow-up prev: fix typo in comment 2023-04-16 21:25:27 +00:00
SomberNight
c9cc56b687 transaction: don't include WIT_UTXO for non-segwit txins
probably regression from d3227d7489

fixes https://github.com/spesmilo/electrum/issues/8305
2023-04-16 21:14:15 +00:00
ThomasV
460c198b02 qml: remove send_onchain (dead code) 2023-04-15 11:31:44 +02:00
Sander van Grieken
89003bba4a qml: remove swapStarted, swapSuccess and swapFailed signals
the state property and associated stateChanged signal can be used instead
2023-04-14 20:34:46 +02:00
ThomasV
98c4c86a00 qeswaphelper: enrich user info 2023-04-14 16:27:38 +02:00
ThomasV
08c478f8d2 network: use IntEnum for connection states. Export user-visible strings in get_connection_status_for_GUI 2023-04-14 15:55:03 +02:00
Sander van Grieken
e059a3c04b qml: apply long-press implementation also on ReceiveRequests 2023-04-14 15:02:38 +02:00
Sander van Grieken
3cab3b86b4 qml: remove SwapProgressDialog, introduce qeswaphelper.state and enable dialog elements
depending on qeswaphelper.state

TODO: we can now retrieve the pairs from the service asynchronously, which should eliminate
the startup delay when showing the SwapDialog
2023-04-14 14:32:56 +02:00
Sander van Grieken
f77ff2723c qml: update userinfo 2023-04-14 14:32:56 +02:00
Sander van Grieken
79d5711003 qml: InfoTextArea add Spinner to styles 2023-04-14 14:32:56 +02:00
ThomasV
f562ad38cf qml: add confirm dialog before disabling recoverable channels (similar to trampoline) 2023-04-14 14:18:49 +02:00
Sander van Grieken
3d75cf4223 qml: skip confirm messagedialog if pin is enabled 2023-04-14 12:44:34 +02:00
Sander van Grieken
21d1a6239f qml: always pass wallet password to init_lightning.
emit also dataChanged so UI updates node pubkey
2023-04-14 12:21:38 +02:00
Sander van Grieken
5d4e6b1cd7 qml: fix setting empty password when switching to already open wallet with password 2023-04-14 10:53:53 +02:00
ThomasV
22745365ad qeswaphelper: factorize code 2023-04-14 10:37:29 +02:00
SomberNight
2c1abf24fa (trivial) use util.get_asyncio_loop() in some places 2023-04-13 23:08:02 +00:00
SomberNight
488dc4871e wallet: is_up_to_date() to return False if taskgroup stopped
If the taskgroup died unexpectedly, this will result in the GUI
showing we are in the "synchronizing" state instead of the green orb.
Being stuck in "synchronizing" provides at least *some* feedback to
the user that something is wrong.

see https://github.com/spesmilo/electrum/issues/8301
2023-04-13 14:42:06 +00:00
ThomasV
8774e59347 exchange rate: if default unit is sat, display value of 1000 sats 2023-04-13 12:03:22 +02:00
ThomasV
8e9491e330 messageDialog: move yes to the right, no to the left.
According to the Google Android guidelines, "The dismissive action
of a dialog is always on the left."
source:
https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150
2023-04-13 10:49:41 +02:00
Sander van Grieken
f43cd7b278 followup prev 2023-04-12 16:21:31 +02:00
Sander van Grieken
7a8e980712 qml: since qeswaphelper is tied to SwapDialog anyway, let's make it a direct child 2023-04-12 16:19:17 +02:00
Sander van Grieken
d5ce9c0994 qml: destroy qeswaphelper with SwapDialog and catch RuntimeErrors if qeswalhelper members are accessed after 2023-04-12 16:09:37 +02:00
Sander van Grieken
d6403400bc qml: remove leftover commented code 2023-04-12 14:32:02 +02:00
Sander van Grieken
1a263b46be qml: keep QEAmount instances in qechanneldetails,
use millisat amounts for local/remote capacity and can send/receive,
refactor channel capacity graphic to ChannelBar and use that as well
in ChannelDetails
2023-04-12 14:29:32 +02:00
Sander van Grieken
778d5f456a qml: swap progress gimmick 2023-04-12 13:13:25 +02:00
Sander van Grieken
27cd7fe8a8 qml: deduplicate swap initiation, move to main.qml 2023-04-12 12:32:25 +02:00
Sander van Grieken
b0778d0281 qml: fix typo 2023-04-12 12:32:25 +02:00
Sander van Grieken
51356dff18 Revert "qml: add busy property and guards around swaphelper"
This reverts commit 5d350184a4.
2023-04-12 12:32:25 +02:00
ThomasV
2e70776a72 fix missing import 2023-04-12 12:21:08 +02:00
Sander van Grieken
2773e0d8b8 qml: fix 46b25317a9 2023-04-12 12:14:11 +02:00
ThomasV
46b25317a9 qt and qml: update swap dialogs when new fees are received (see #8295) 2023-04-12 12:01:47 +02:00
ThomasV
2203bba4ea fix flake8 test 2023-04-12 11:59:52 +02:00
ThomasV
0544c4b651 payserver: fix #8299 2023-04-12 11:28:16 +02:00
Sander van Grieken
4d5be450d9 qml: default to system locale on android 2023-04-11 15:19:29 +02:00
Sander van Grieken
9bbc354e0e qml: refactor txaccepted/txcancelled signals to standard accepted/rejected. 2023-04-11 12:13:41 +02:00
Sander van Grieken
a0939aad75 qml: add doAccept and doReject functions to ElDialog.
These functions make sure no duplicate accepted/rejected signals are emitted.
2023-04-11 12:01:10 +02:00
Sander van Grieken
75f63a4666 qml: remove yesClicked signal, use accept()/accepted signal in MessageDialog. 2023-04-11 10:22:48 +02:00
ThomasV
697bf2b1c8 Revert commit ddd778f7f7.
This fixes #8298. The initial commit was good.
2023-04-10 21:23:50 +02:00
ThomasV
ddd778f7f7 follow-up previous commit 2023-04-09 11:32:01 +02:00
ThomasV
750a9b3613 network: remove network.notify() method; not really useful.
Not worth the added complexity.
2023-04-09 11:29:21 +02:00
SomberNight
e77b0560bf android: fix notifications by fixing "plyer" dependency
upstreamed patch at https://github.com/kivy/plyer/pull/756
2023-04-06 18:00:45 +00:00