1
0
Commit Graph

16031 Commits

Author SHA1 Message Date
ThomasV
6bec498560 qml: use the same button for copy and paste 2023-03-30 12:26:35 +02:00
ThomasV
5ef7fabc73 qml InvoiceDialog: merge status and userinfo 2023-03-30 11:24:50 +02:00
Sander van Grieken
2cbb16ae4b qml: move save_tx to qewallet 2023-03-30 10:41:01 +02:00
Sander van Grieken
e40ab26bd3 qml: qenetwork log server_status only when changing, log network_status updates 2023-03-30 09:29:02 +02:00
SomberNight
bd725b50d1 update block header checkpoints 2023-03-30 01:28:56 +00:00
SomberNight
81761c2ef1 qml: BalanceSummary to treat server_status=="connecting" same as DC-ed 2023-03-30 00:59:20 +00:00
SomberNight
3149ccf729 qml: update server in network dialog on more events
"defaultServerChanged" was not the right event to listen to. It is only sent
*after* the interface is ready.
"network_updated" is a bit overkill as it is triggered every time any of the
interfaces goes down or a new one is created, still, better to trigger a
few more times than to be stale.
In particular, if there is no internet connection, the server string is now
updated as expected, instead of showing stale values and ignoring trying
to change servers.
Also, a further state that did not exist before: just like it worked in
the kivy GUI, if the main server was changed but it is not yet connected,
instead of showing the old server still, we now show f"{new_server} (connecting...)".
2023-03-30 00:59:16 +00:00
SomberNight
04df286519 interface: fix ServerAddr.from_str_with_inference() for raw IPv6 addr
and add tests
2023-03-30 00:59:13 +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
44f91ab88f qml: add TODO about --offline missing 2023-03-30 00:59:06 +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
SomberNight
9ef6d6a56f qml: rm QEConfig.serverString. Network.server is sufficient
If there is no network object, it's ok not to be able to customise it.
2023-03-30 00:58:58 +00:00
SomberNight
d46d23b103 network: add method init_parameters_from_config 2023-03-30 00:58:54 +00:00
SomberNight
d189fdce69 qml: crash reporter: fix "show never" option
102.82 | E | gui.qml.qeapp.Exception_Hook | exception caught by crash reporter
Traceback (most recent call last):
  File "/home/user/wspace/electrum/electrum/gui/qml/qeapp.py", line 271, in showNever
    self.config.set_key(BaseCrashReporter.config_key, False)
AttributeError: 'QEAppController' object has no attribute 'config'
2023-03-30 00:58:51 +00:00
Sander van Grieken
cc60ab0b20 qml: move payment progress info text updates fully into qeinvoice, qeinvoice now updates itself
directly from backend wallet callbacks
2023-03-29 19:08:11 +02:00
Sander van Grieken
7efd6fe1e2 qml: don't show ln payment dialog, update info text instead 2023-03-29 19:08:11 +02:00
SomberNight
57786049e9 qml: network dialog to update "status" more often 2023-03-29 16:41:20 +00:00
SomberNight
faa53c71da qml: (trivial) fix warning in NetworkOverview.qml
10.95 | W | gui.qml.qeapp | file:///home/user/wspace/electrum/electrum/gui/qml/components/NetworkOverview.qml:220:25: Unable to assign [undefined] to QString
2023-03-29 16:41:17 +00:00
SomberNight
37d0a67e5b qml: proxy config: fix socks4/socks5 dropdown 2023-03-29 16:41:13 +00:00
SomberNight
512b63c424 exchange_rate: FxThread does not need network 2023-03-29 16:41:09 +00:00
SomberNight
f4e66810e7 qml: ElectrumGui to inherit BaseElectrumGui 2023-03-29 16:41:04 +00:00
Sander van Grieken
05d6c5155c qml: use invoice.amount directly in amounts display 2023-03-29 18:05:55 +02:00
ThomasV
7fcf347eb0 qml: channel details dialog: clarify whether object is a channel or a channel backup 2023-03-29 16:49:10 +02:00
ThomasV
a270bb5c43 qml swap dialog: show normal swap amount without mining fee, to be consistent with the qt GUI. 2023-03-29 16:27:40 +02:00
ThomasV
5721b7da4b qml: add userinfo to invoices where amount needs to be filled by user 2023-03-29 12:15:07 +02:00
Sander van Grieken
288b7cd3bc qml: show explanatory text when sharing partially signed tx
after creating a multisig transaction
2023-03-29 11:39:40 +02:00
Sander van Grieken
aaad1cf286 qml: wrap long server names (e.g tor onion address) 2023-03-29 11:15:52 +02:00
ThomasV
31bff4d2a8 receive_tab: initialize fields 2023-03-29 11:10:00 +02:00
Sander van Grieken
ea7dbb19ce qml: remove network status indicator icon from server line 2023-03-29 11:02:15 +02:00
SomberNight
f25e384654 build: fail if not inside git clone
related: https://github.com/spesmilo/electrum/issues/8284
2023-03-28 22:35:19 +00:00
SomberNight
fc7ff8198a build: don't assume git repo in make_packages.sh
to be able to run it from an unpacked sdist
2023-03-28 22:35:15 +00:00
SomberNight
5fd6d2af4b qml: flip and fix auto_connect in ServerConnectWizard 2023-03-28 14:44:21 +00:00
Sander van Grieken
edffbee92d qml: same for last 2023-03-27 12:03:46 +02:00
Sander van Grieken
cc9b022089 qml: don't update wizard valid state from wizard pages that are not the current page 2023-03-27 12:01:55 +02:00
Sander van Grieken
229047de19 qml: followup 1e6b692516 2023-03-27 11:54:28 +02:00
Sander van Grieken
1e6b692516 qml: bind invoice.amount to internal property. fixes #8262 2023-03-27 11:46:00 +02:00
Sander van Grieken
d0f3e048b9 qml: followup 78d79290ad 2023-03-25 13:14:50 +01:00
Sander van Grieken
78d79290ad qml: create workaround for spurious textChanged events coming from TextArea. fixes #8280
This commit also fixes a gap, where a seed text change could leave the page valid for the
duration of the valid check delay timer, while the seed is actually invalid.
2023-03-25 12:58:22 +01:00
SomberNight
965e1ac9a3 android: update readme, list required apt packages for qml on desktop 2023-03-24 14:03:38 +00:00
SomberNight
f53522f0c9 release: also build android apk for x86_64 arch
related: f9f57b58b4

(note: this should be enough to put the apk onto download.electrum.org,
but it is not yet linked from the main website)
2023-03-24 10:47:50 +00:00
SomberNight
8c1fe10f54 qml TxDetails: show short_id instead of block height and txpos
The "TX index" (txpos) item I think was confusing.
2023-03-23 16:57:16 +00:00
Sander van Grieken
f9f57b58b4 Revert "android build: rm x86_64 target from "all" alias, since it is broken"
This reverts commit b2372f2d53.

x86_64 build should work now
2023-03-23 17:01:09 +01:00
Sander van Grieken
aaff7502db android: update P4A to 3c2750795ba93aa1a3e513a13c2ea2ac5bddba17
remove qt5 patch to disable avx/avx2 for x86_64 arch
2023-03-23 17:00:08 +01:00
Sander van Grieken
743ea80a4c qml: move potentially slow tx generation in qeswaphelper to a short delay timer 2023-03-23 17:00:08 +01:00
SomberNight
ee380bb747 release.sh: use qml gui for android release apk 2023-03-23 15:08:58 +00:00
ThomasV
fe968cfb4b qml: (minor) change name of Amount field 2023-03-23 15:55:25 +01:00
SomberNight
b2372f2d53 android build: rm x86_64 target from "all" alias, since it is broken
(and release.sh uses the "all" target)

see https://github.com/spesmilo/electrum/issues/8278
2023-03-23 14:38:19 +00:00
SomberNight
0ebcc7df63 qml: only do android-specific stuff when on android
don't log an error when running on desktop
2023-03-23 14:34:47 +00:00
SomberNight
2231057d1e android build: allow specifying "x86_64" as target in build.sh 2023-03-23 14:12:39 +00:00
Sander van Grieken
f9a5c22633 qml: lnurl override disabled amount edit color, show lnurlError to user 2023-03-23 14:03:00 +01:00