1
0
Commit Graph

16218 Commits

Author SHA1 Message Date
ThomasV
03d64aa665 qt: use same icon as qml for swap dialog 2023-04-18 12:56:45 +02:00
ThomasV
9b98d762ee update locale submodule 2023-04-18 12:49:05 +02:00
ThomasV
6bdda957c0 qml: reformulate swap success message 2023-04-18 12:00:14 +02:00
ThomasV
f513ba4654 messageDialog: change title to Question for yesno dialogs 2023-04-18 10:32:07 +02:00
ThomasV
86aca1e24e qml: change title of ConfirmTxDialog
From a user perspectuve, what they are asked to do is select the mining fee.
2023-04-18 10:20:54 +02:00
ThomasV
dde609872d follow-up a03f4769ca
It is annoying that this kind of bug (missing parameter) is silent.
2023-04-18 10:16:58 +02:00
SomberNight
a6c36b8588 regtests: test_watchtower started failing due to newly exposed bug
local_watchtower.adb.start_network was getting called twice.

follow-up 6ac3f84095

```
20230418T014725.636141Z |    ERROR | __main__ |
Traceback (most recent call last):
  File "/home/user/wspace/electrum/./run_electrum", line 435, in main
    handle_cmd(
  File "/home/user/wspace/electrum/./run_electrum", line 469, in handle_cmd
    d = daemon.Daemon(config, fd)
  File "/home/user/wspace/electrum/electrum/util.py", line 462, in <lambda>
    return lambda *args, **kw_args: do_profile(args, kw_args)
  File "/home/user/wspace/electrum/electrum/util.py", line 458, in do_profile
    o = func(*args, **kw_args)
  File "/home/user/wspace/electrum/electrum/daemon.py", line 404, in __init__
    self.network = Network(config, daemon=self)
  File "/home/user/wspace/electrum/electrum/network.py", line 348, in __init__
    self.local_watchtower.adb.start_network(self)
  File "/home/user/wspace/electrum/electrum/address_synchronizer.py", line 185, in start_network
    assert self.network is None, "already started"
AssertionError: already started
```
2023-04-18 02:02:07 +00:00
SomberNight
5c83327eb0 qml: small change to some qsTr() strings to reuse existing translations
not all ":" suffixes are removed, only the ones where this allows reusing translations
2023-04-17 19:56:09 +00:00
SomberNight
27ce8ba241 i18n: log initial default language set based on OS locale 2023-04-17 19:56:05 +00:00
SomberNight
e3544f260b i18n: log set_language 2023-04-17 18:26:29 +00:00
ThomasV
b42bb84b5c fix typo 2023-04-17 19:04:09 +02:00
SomberNight
6ac3f84095 wallet/lnworker/etc: add sanity checks to start_network methods
related: https://github.com/spesmilo/electrum/issues/8301
2023-04-17 16:56:57 +00:00
ThomasV
a03f4769ca auth_protect: pass authMessage in the auth_protect decorator,
instead of relying on side-effects

This is probably safer, and also more self-contained.
2023-04-17 18:17:29 +02:00
ThomasV
73dd6827e0 add auth_message to delete_wallet
This changes the flow slightly: pin confirmation is asked after
we have checked that the wallet does not have open channels,
which is better
2023-04-17 17:58:19 +02:00
ThomasV
1421df57ad add auth message for open_channel 2023-04-17 17:14:23 +02:00
ThomasV
e430063351 PIN dialog: display auth message as title, if available 2023-04-17 17:08:11 +02:00
ThomasV
85291b2de3 follow-up 5b6a16e097 2023-04-17 16:54:26 +02:00
Sander van Grieken
5b6a16e097 qml: add auth_message to AuthMixin, which is displayed above the Pin entry textfield, or
shown in a messageDialog for confirmation.
2023-04-17 16:32:20 +02:00
Sander van Grieken
62af3265cb qml: disable menu option associated with current page 2023-04-17 15:36:13 +02:00
Sander van Grieken
99a78d4d6c wallet: don't restart wallet/network when init_lightning 2023-04-17 15:00:53 +02:00
Sander van Grieken
76786ab670 qml: qechanneldetails fix remaining assignment 2023-04-17 13:56:40 +02:00
Sander van Grieken
73f89d516a qml: don't determine channel state on gui string, use state enum instead 2023-04-17 13:52:16 +02:00
Sander van Grieken
a1314f5992 qml: only show channel ratio bar when appropriate 2023-04-17 12:48:51 +02:00
Sander van Grieken
3be5db15d2 qml: don't show channel backup data in share screen 2023-04-17 12:19:59 +02:00
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