Commit Graph

2013 Commits

Author SHA1 Message Date
Sander van Grieken
26d9c06e0c qml: add export TX and scan of TX 2022-10-28 10:46:23 +02:00
SomberNight
45a939c146 tests: add test to check if we include xpubs in psbts
related: https://github.com/spesmilo/electrum/issues/8036
2022-10-27 15:55:01 +00:00
Sander van Grieken
afb0c3bdb7 qml: implement remove local tx, show channel backup after channel open 2022-10-26 13:22:39 +02:00
Sander van Grieken
34d39e84f0 qml: don't check min amount for amount-less invoice 2022-10-26 11:18:01 +02:00
Sander van Grieken
3ace53391f qml: disable pay button while editing amount, perform minimum amount check for lightning invoices, update amount in invoice list. 2022-10-26 11:12:58 +02:00
Sander van Grieken
e3b3f04afe qml: refresh address list on new transaction by setting dirty flag 2022-10-25 16:45:27 +02:00
Sander van Grieken
a2d1d5e288 qml: missing import 2022-10-25 16:27:15 +02:00
Sander van Grieken
571c626eb4 qml: run tx broadcast in thread, re-enable broadcast button in TxDetails when broadcast fails
show notification when broadcast fails
2022-10-25 16:24:56 +02:00
Sander van Grieken
902f16204c qml: initial RbF bump fee feature 2022-10-25 15:13:57 +02:00
Sander van Grieken
87ee3030a8 qml: actually use rbf selection 2022-10-24 17:08:57 +02:00
ThomasV
d922db0bdf Merge pull request #7986 from accumulator/wizard
New approach to implement new wallet wizard
2022-10-24 13:29:42 +02:00
Sander van Grieken
2adf034771 use apply() function on every wizard page, making sure wizard_data is always available
to wizard navigation evaluation
2022-10-24 13:04:46 +02:00
Sander van Grieken
fac4003354 qml: fix wizard_data not available to 'last' check on have seed wizard page
also refactor seed verification, split off seed_variant from seed_type (partial disambiguation),
fix bip39 wallet creation
2022-10-24 13:03:33 +02:00
accumulator
6e536d2d91 add invoice status to invoice_status callback (#8020)
* add invoice status to invoice_status callback

* debug statement fails tests

* removed commented lines, added progress/attempt counter comment in lnworker.pay_to_node,
and update the invoice_status event handler in qeinvoicelistmodel.py
2022-10-21 16:45:12 +00:00
Sander van Grieken
d65ee17100 qml: ui confirm tx dialog 2022-10-21 14:15:59 +02:00
Sander van Grieken
cf005a0f2a qml: ui close channel dialog 2022-10-21 14:11:14 +02:00
Sander van Grieken
daffa1a731 qml: ui swapdialog 2022-10-21 14:00:35 +02:00
Sander van Grieken
6ca733a12f move /gui/wizard.py to /wizard.py 2022-10-21 13:32:16 +02:00
Sander van Grieken
c6496d02ef add recovery paths (disable and confirm/reset OTP) for 2FA 2022-10-21 13:32:16 +02:00
Sander van Grieken
15e2ed4f58 rewrite server connect wizard to new wizard style
'last' property on WizardComponents is now queried from UI, not from the wizard.
This allows the content of the WizardComponent itself to be taken into account.
2022-10-21 13:32:16 +02:00
Sander van Grieken
6ea3a16cc8 add wallet type imported addresses/private keys to wizard 2022-10-21 13:32:16 +02:00
Sander van Grieken
acb88f21c1 implement success and failure paths, keep dialog over multiple tries 2022-10-21 13:32:16 +02:00
Sander van Grieken
20c95b26ea wip otp on pay 2022-10-21 13:32:13 +02:00
Sander van Grieken
e579f5b8a5 properly remember wallet password and pass to tx signing call 2022-10-21 13:31:24 +02:00
Sander van Grieken
e0a3efe5b5 move wallet creation from wizard to ui agnostic NewWalletWizard 2022-10-21 13:31:24 +02:00
Sander van Grieken
43bac2edff qml: use new wizard approach in qml and also implement 2FA/trustedcoin 2022-10-21 13:31:24 +02:00
Sander van Grieken
a4195267ff new wizard approach 2022-10-21 13:31:24 +02:00
Sander van Grieken
b37262f232 qml: proper check for max amount onchain. move max amount lightning to superclass 2022-10-21 13:24:39 +02:00
Sander van Grieken
a1fac70ebc qml: fix bug with lingering info text from previous shown invoice 2022-10-21 13:01:45 +02:00
sorenstoutner
f995a5001d Fix CRLF issues. (#8026) 2022-10-20 18:43:54 +00:00
Sander van Grieken
65250e69d8 qml: add max amount option in invoice dialog and show in invoice delegate 2022-10-20 17:18:46 +02:00
SomberNight
c5d17183f7 qt BTCAmountEdit: clamp field to <=21 million bitcoins
fixes https://github.com/spesmilo/electrum/issues/5223
2022-10-19 18:07:02 +00:00
SomberNight
1f5ab5cb8d qt AmountEdit: small refactor 2022-10-19 17:22:23 +00:00
Sander van Grieken
c7cdd42665 qml: ui 2022-10-19 14:15:24 +02:00
Sander van Grieken
bb3f3991e8 qml: detect request paid status on receive dialog 2022-10-19 10:02:11 +02:00
Sander van Grieken
49037ecc85 qml: handle bitcoin: and lightning: uri intents 2022-10-18 18:31:59 +02:00
Sander van Grieken
3a8cfcd5b8 qml: add total balance, fix initialization of create recoverable channels setting 2022-10-17 17:24:46 +02:00
Sander van Grieken
80f2bf7c09 qml: incoming flag not always correct for determining debit/credit. Use 'value' instead 2022-10-17 16:43:38 +02:00
Sander van Grieken
26534094db qml: invoicemodel and requestmodel update invoice status via event listener 2022-10-17 15:46:36 +02:00
Sander van Grieken
0c163a5322 qml: don't duplicate invoice (e.g. when scanned twice)
also add invoice to invoiceModel from python, not qml
2022-10-17 15:44:27 +02:00
Sander van Grieken
f64d344dcd qml: Remove key exist check in lnworker.payment_info
We don't use its result, and I've seen one occasion where a payment exists in history, but not in payment_info dict
2022-10-17 12:14:02 +02:00
Sander van Grieken
5042d9971c qml: update history when LN payment arrives 2022-10-17 11:34:32 +02:00
SomberNight
4b8790c919 qt 2fa: show different status-bar icon for "2fa disabled" wallet
related: https://github.com/spesmilo/electrum/issues/8018
2022-10-16 15:10:46 +00:00
SomberNight
f2e3d11014 qt gui __init__: rm deprecated QApplication attr AA_X11InitThreads
From https://doc.qt.io/qt-5/qt.html :
> The following values are deprecated or obsolete:
> Constant              Value   Description
> Qt::AA_X11InitThreads 10      This value is obsolete and has no effect.

We started setting this attribute back when using Qt4,
as a workaround for some threading issues: https://github.com/spesmilo/electrum/pull/2820

However,
- in Qt5 it no longer has any effect,
- the original threading issues were fixed
  in https://github.com/spesmilo/electrum/pull/3326 and https://github.com/spesmilo/electrum/pull/3330
2022-10-14 19:02:23 +00:00
ghost43
b619e2b3af Merge pull request #8003 from SomberNight/202210_android_debug_logs
android: add setting to enable debug logs
2022-10-10 19:03:52 +00:00
SomberNight
174cbde762 kivy: window.request_focus_for_main_view: fix compat with newer pyjnius
```
Traceback (most recent call last):
  File "kivy/_clock.pyx", line 645, in kivy._clock.CyClockBase._process_events
  File "kivy/_clock.pyx", line 218, in kivy._clock.ClockEvent.tick
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/gui/kivy/uix/dialogs/password_dialog.py", line 227, in <lambda>
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/gui/kivy/uix/dialogs/password_dialog.py", line 333, in <lambda>
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/gui/kivy/main_window.py", line 721, in on_open_wallet
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/gui/kivy/main_window.py", line 687, in on_wizard_success
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/util.py", line 445, in <lambda>
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/util.py", line 441, in do_profile
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/gui/kivy/main_window.py", line 940, in load_wallet
  File "/home/user/wspace/electrum/.buildozer_kivy/android/app/electrum/gui/kivy/main_window.py", line 950, in request_focus_for_main_view
  File "jnius/jnius_export_class.pxi", line 844, in jnius.jnius.JavaMethod.__call__
jnius.jnius.JavaException: Cannot call instance method b'requestFocusForMainView' on class b'org/kivy/android/PythonActivity'
```
2022-10-10 14:43:43 +00:00
SomberNight
34b594ea40 android: add setting to enable debug logs
If enabled, we log to stderr, which can get inspected via logcat.
Not user-friendly at all - but previously there was no way to get logs from a release build.

closes https://github.com/spesmilo/electrum/issues/7409
2022-10-07 20:28:52 +00:00
Sander van Grieken
685f32750c qml: ui 2022-10-05 18:00:51 +02:00
Sander van Grieken
488600788e qml: open invoices list after saving invoice, add invoice to model instead of reloading the whole list 2022-10-05 11:07:40 +02:00
Sander van Grieken
090706bfd6 qml: fix crashes on tx finalizing 2022-10-04 21:51:55 +02:00