Commit Graph

1458 Commits

Author SHA1 Message Date
ThomasV
46b25317a9 qt and qml: update swap dialogs when new fees are received (see #8295) 2023-04-12 12:01:47 +02:00
SomberNight
f0e89b3ef6 addr_sync: migrate usages of get_txpos to get_tx_height
the return value of get_txpos is fine-tuned for sorting... other uses are highly questionable.
2023-04-04 17:49:46 +00:00
ThomasV
f04e2e2e6f Add an extra state for invoices where our tx has been broadcast
successfully, but it is not in our history yet.

(follow-up 159646fe54)
2023-04-04 19:31:25 +02:00
ThomasV
159646fe54 Set status of onchain invoices to PR_INFLIGHT while tx is being broadcast 2023-04-04 18:22:30 +02:00
ThomasV
8e3a3cefcf qt: do not mutate already saved invoice after editing amount.
Also show empty an string for invoices that do not have an amount,
similar to the requests list.
2023-04-04 11:21:26 +02:00
ThomasV
545ee24f46 Qt: move new_channel_dialog to main_window and test available amount beforehand 2023-04-02 10:07:34 +02:00
ThomasV
a753f34c09 Qt: rename utxo menu action to 'privacy analysis' 2023-04-01 12:47:30 +02:00
ThomasV
2cda5a1a7b Merge pull request #8287 from SomberNight/202303_qt_netdlg_icon_selected
qt network dialog: use icon for selected server, instead of "*"
2023-03-31 14:43:17 +02:00
SomberNight
4a626a113d qt receive_tab: fix "show_address_on_hw" functionality
follow-up b07fe970bf

I don't like this being hidden in the toolbar menu.
The other items in the toolbar menu are ~settings or generic actions
independent of the current request. This one is dependent on the
current request, and even the active "tab"... does not make sense
to show this when the lightning tab is active.
It is more difficult to discover it in the first place than previously,
and it being less visible goes against encouraging hw device users of
using it, which is what we should be doing.

Anyway, this commit just makes it functional as-is.
2023-03-31 01:14:08 +00:00
SomberNight
bcd2ec3d70 (trivial) qt/util: add some leftover type-hints 2023-03-31 01:04:54 +00:00
SomberNight
31fde2484f qt network dialog: use icon for selected server, instead of "*"
Previously we added a " *" suffix to distinguish the selected/main server
in the list. However in case of an .onion address, anything we put as a
suffix inline is elided/truncated - as the address itself does not fit.
Hence we could instead use a prefix - and then why not use an icon.
2023-03-30 14:56:33 +00:00
SomberNight
0a3e286f1d qt tx dialog: show_qr to warn if QR code is missing data
When exporting a tx as qr code, the prev txs are omitted to save space.
This causes problems with offline signers: software electrum signers will
just warn and then proceed, but hw devices will typically error.
2023-03-30 14:32:31 +00:00
SomberNight
101958e022 qt network_dialog: fix right-click "Use as server" for raw IPv6 servers
`server.net_addr_str()` cuts off the trailing protocol marker, while `str(server)` has it.
`parent.set_server` then called `ServerAddr.from_str_with_inference` trying to guess the just cut off protocol,
but fails if given an IPv6 address.
2023-03-30 00:59:10 +00:00
SomberNight
1530668960 qt/qml: delay starting network until after first-start-network-setup
The qt, qml, and kivy GUIs have a first-start network-setup screen
that allows the user customising the network settings before creating a wallet.
Previously the daemon used to create the network and start it, before this screen,
before the GUI even starts. If the user changed network settings, those would
be set on the already running network, potentially including restarting the network.

Now it becomes the responsibility of the GUI to start the network, allowing this
first-start customisation to take place before starting the network at all.
The qt and the qml GUIs are adapted to make use of this. Kivy, and the other
prototype GUIs are not adapted and just start the network right away, as before.
2023-03-30 00:59:02 +00:00
ThomasV
31bff4d2a8 receive_tab: initialize fields 2023-03-29 11:10:00 +02:00
ThomasV
9eb25cd442 follow-up a080e5130f 2023-03-23 08:22:36 +01:00
ThomasV
0d007b5739 follow-up aa3697d 2023-03-22 10:21:09 +01:00
ThomasV
3fb3e3b809 lnurl6: pay invoice directly 2023-03-21 17:08:36 +01:00
SomberNight
ed0f1ea27f qt receive_tab: use correct qrcode icon (based on dark/light theme) 2023-03-21 15:31:07 +00:00
ThomasV
1503ef1e2a follow-up previous commit 2023-03-21 10:42:21 +01:00
ThomasV
a080e5130f Qt receive_tab: toggle_view_button instead of tabs 2023-03-21 10:34:26 +01:00
ThomasV
ce6e4d99e7 Qt history_list: disable summary if fx history is not available 2023-03-21 08:04:03 +01:00
ThomasV
4fa192d9e7 follow-up c3e52bfafc 2023-03-20 11:09:18 +01:00
ThomasV
5cf4b346a9 change message: detached QR code window 2023-03-19 11:40:52 +01:00
ThomasV
8b0a6940bc receive tab: disable widgets if request has expired, instead of applying red stylesheet 2023-03-19 11:13:45 +01:00
ThomasV
4243b250b1 qt send_tab: simplify method names.
when a method belongs to a class, there is no need to repeat the
class name in the method name.
2023-03-19 10:44:33 +01:00
ThomasV
b07fe970bf receive tab: do not use ButtonsTextEdit, add toggle to toolbar. 2023-03-19 10:15:19 +01:00
ThomasV
c3e52bfafc Qt: allow to save invoices that have no amount
(such invoices are already saved by the QML GUI.)
2023-03-19 09:52:47 +01:00
ThomasV
aa3697de74 Qr request_list: maybe fix elusive segfault 2023-03-19 06:36:36 +01:00
ThomasV
5c60b9ad29 ln invoice dialog: show fallback address 2023-03-19 05:16:15 +01:00
ThomasV
8cc610298b QML: auto-delete expired requests. Add action to Qt menu 2023-03-18 09:59:18 +01:00
SomberNight
55da7276d3 qt export history/privkeys: put wallet name in path
closes https://github.com/spesmilo/electrum/issues/8255
2023-03-17 15:49:58 +00:00
SomberNight
8db1c3814b qt export history: let util.filename_field decide default path
which uses:
directory = config.get('io_dir', os.path.expanduser('~'))
2023-03-17 15:47:42 +00:00
ThomasV
c3a0f9c078 Qt swaps_dialog: do not use side effects to update tx.
Use the app timer instead, so that the tx is not recomputed
on every slider move (like in ConfirmTxDialog).

A similar modification is needed for QML. I started with
Qt in order to get a sense of how it should be done.
2023-03-17 15:07:06 +01:00
ThomasV
fcbd25c1fd qml: display network status and history server status separately. Also, show network fees on full screen width 2023-03-17 10:15:07 +01:00
SomberNight
ff2da7ceb9 crash reporter: hardcode gui text. do not trust the server with it
paranoia.
2023-03-16 19:48:35 +00:00
ThomasV
13a9d1e2fb Add info on how to scan channel backups 2023-03-16 17:24:07 +01:00
ThomasV
7207f13e97 Qt: set history_rates both through settings_dialog and history_list
follow-up 503776c0de
2023-03-16 16:48:12 +01:00
SomberNight
3a7bc82881 icons: add "cloud_yes.png", and rename existing "nocloud" 2023-03-16 15:22:10 +00:00
ThomasV
91f36db8ef type checking, follow-up 206bacbcb3 2023-03-15 15:42:58 +01:00
ThomasV
3ddffb9773 follow-up 206bacbcb3 2023-03-15 15:41:08 +01:00
ThomasV
206bacbcb3 move MyTreeView and related classes to own submodule 2023-03-15 14:25:42 +01:00
ThomasV
abc8d1550e Expiry: the setting is a period, not a date 2023-03-15 12:35:58 +01:00
ThomasV
5750c8954d receive tab: move back Expiry to its previous location, but use
dialog instead of ComboBox.

The toolbar location is not good, because it can be perceived as
being about the request currently displayed.
2023-03-15 12:28:26 +01:00
ThomasV
42a63643f3 receive tab: move expiry to toolbar 2023-03-15 12:20:22 +01:00
ThomasV
33a84f6be5 view menu: use checkable actions 2023-03-15 11:27:05 +01:00
ThomasV
b431d39a8e Qt lists: consistently show Details as first item in the contextual menu 2023-03-15 11:18:19 +01:00
ThomasV
107a6f9080 utxo_dialog: fix minor regression (set cursor to top after drawing) 2023-03-15 11:11:11 +01:00
ThomasV
2db0bc9f73 tx in/out details: rewording 'receiving address'
in the confirm tx dialog, 'receiving' could lead users to believe
that the funds are going to be sent to this address.
2023-03-15 11:00:40 +01:00
ThomasV
20e93af70c lightning_tx_dialog: add editable tx description 2023-03-15 10:48:03 +01:00