Sander van Grieken
2995bc8b37
qml: fix dialog not closing if dialog is shown/hidden more than once
...
most dialogs are destroyed when closed, therefore not hitting this bug,
but e.g. ChannelOpenProgressDialog is reused.
2023-11-10 11:59:22 +01:00
Sander van Grieken
0fb47c87d2
qml: fixes for CloseChannelDialog;
...
- split RequestForceClose and LocalForceClose options, as request force close is only available if connected.
- disable no close policy on dialog, as it locks the user in the dialog if no succesful close is initiated.
what this intended to do is keep the backing object QEChannelDetails alive until a result is obtained, to avoid
exceptions when emitting the result signal. this is now handled more robustly, the user can leave the dialog
without triggering exceptions later.
2023-11-10 10:58:08 +01:00
SomberNight
5ba156fcad
Merge remote-tracking branch 'remotes/accumulator/qt6'
...
For the "qml" gui (used on Android), this upgrades the qt version from 5.15 to 6.4.
PR https://github.com/spesmilo/electrum/pull/8545
2023-11-09 16:18:56 +00:00
Sander van Grieken
047cc6f957
qml: remove attempt to unfocus by clicking dialog background
...
Doesn't really work as it triggers on events above the background it is defined on :(
2023-11-08 15:38:26 +01:00
Sander van Grieken
8798a45d70
qml: fix issue with width of fiat textedit on ReceiveDetailsDialog
2023-11-07 17:05:13 +01:00
Sander van Grieken
f708e7f03e
wizard/wallet: clean up imports, code style warnings.
2023-11-07 11:05:30 +01:00
Sander van Grieken
a6432732f0
qml: addresses/coins filter match case insensitive, don't match 'None' for undefined fields
2023-11-07 10:47:34 +01:00
SomberNight
1544a71542
qml qr scanner: make xml layout look nicer
2023-11-07 10:32:14 +01:00
Sander van Grieken
11d39cd942
qml: fix keyboard exclusion zone
...
turns out that Qt.inputMethod.keyboardRectangle.height is not suitable for calculating the exact keyboard
dimensions in Qt coordinates. Instead, use Qt.inputMethod.keyboardRectangle.y transformed to Qt coordinates
using Screen.devicePixelRatio
Note: Qt.inputMethod.keyboardRectangle stop being updated after exiting FLAG_SECURE state
(e.g. in seed or master key entry pages)
2023-11-07 10:32:00 +01:00
Sander van Grieken
32c1915de4
qml: restore Send/ScanDialog for desktop/dev, keeping qr scan Activity for android only.
...
Also use stable R package, regardless of APP_PACKAGE_DOMAIN used in build.
2023-11-07 10:17:10 +01:00
SomberNight
5c3e14d8de
qml: replace Send/ScanDialog with java bases zxing qr scan activity.
2023-11-07 10:17:10 +01:00
SomberNight
c33ee87544
android: restore SimpleScannerActivity.java that was used in kivy
...
for QR code scanning with camera
1c10b1ce00/electrum/gui/kivy/data/java-classes/org/electrum/qr/SimpleScannerActivity.java
2023-11-07 10:17:10 +01:00
Sander van Grieken
be801f30e8
gui: make common_qt compatible with both Qt5 and Qt6
2023-11-07 10:17:10 +01:00
Sander van Grieken
db532dbd19
qml: android back-gesture conflict hack not working on qt6, replace with simple properties
2023-11-07 10:17:10 +01:00
Sander van Grieken
a77ff9943a
qml: refactor qr scan to qt6
...
As the method of capturing frames is totally different, the animation when
a QR is found has been removed.
2023-11-07 10:17:10 +01:00
Sander van Grieken
65d41ccc49
qml: qualify all signal handler parameters
2023-11-07 10:17:10 +01:00
Sander van Grieken
ae446377f8
qml: work around toolbar layout not right-aligning indicators when indicators toggle visibility
2023-11-07 10:17:10 +01:00
Sander van Grieken
8b567ae447
qml: remove all QML imports version numbers
2023-11-07 10:17:08 +01:00
Sander van Grieken
6270eae5c9
qml: port PyQt5 to PyQt6
2023-11-07 10:16:18 +01:00
Sander van Grieken
d6a6f56ddf
qml: add ice crystal icon and use for (un)freeze buttons.
2023-11-02 13:06:48 +01:00
Sander van Grieken
4671c002c9
qt: fix detected account select ( #8673 )
2023-11-02 12:49:31 +01:00
ThomasV
e8f5aa50ca
Merge pull request #8653 from accumulator/addresses_coins_filter
...
qml: also show coins in Addresses page, and add a few filter options.…
2023-11-02 12:36:24 +01:00
Sander van Grieken
6ce8a583fd
qt: add missing case for on-chain fallback for BIP21 payment identfier containing lightning invoice
2023-11-02 10:24:37 +01:00
Sander van Grieken
c694415b4b
qml: add addresslist filter persistence
2023-11-01 18:23:16 +01:00
Sander van Grieken
e88cf0a683
qml: addresses list formatting, add txid/outpoint and amount to filter
2023-11-01 17:17:16 +01:00
Sander van Grieken
cf91d2e5cc
qml: also show coins in Addresses page, and add a few filter options. Additionally, long press
...
now activates multi-select mode, and add action to (un)freeze selection.
2023-11-01 14:32:38 +01:00
Sander van Grieken
af61b9d86b
qml: also add share option for fallback address in InvoiceDialog
2023-11-01 11:38:47 +01:00
Sander van Grieken
6c51927576
qml: emit error when bip21 contains neither an address nor a lightning invoice ( fixes #8662 )
2023-11-01 02:54:19 +01:00
SomberNight
711a325085
main_window: split out "walet info" dlg into separate file
...
- no semantic changes, only moving code
- the change in qt/util.py is to avoid GC issues
- due to moving code, the group was moving out of scope and getting GC-ed,
as we only keep a reference to the vbox
(idea from 263fb2ba33 )
2023-10-31 17:41:11 +00:00
SomberNight
3060372894
qt wizard: WCHaveMasterKey: use check_multisig_constraints
...
These checks were missing from validation. e.g. duplicate master keys were allowed.
2023-10-31 17:43:15 +01:00
SomberNight
4b2d8f062c
qt wizard: fix WCHaveMasterKey for first multisig cosigner
...
fixes https://github.com/spesmilo/electrum/issues/8665
2023-10-31 17:43:15 +01:00
SomberNight
7df057aaf9
qt wizard: simplify WCHaveSeed
2023-10-31 17:43:15 +01:00
ThomasV
120faa480e
If trampoline is enabled, do not add non-trampoline nodes to invoices
...
Rationale: The sender should not assume that they share the same list of
hardcoded trampolines as the receiver.
2023-10-29 16:21:25 +01:00
Sander van Grieken
4d60432064
qml: add share option for address in InvoiceDialog
2023-10-29 12:33:25 +01:00
SomberNight
097a10f84d
qt: window.how_lightning_invoice: routing_e should be read-only
2023-10-27 14:24:16 +00:00
SomberNight
abe700167f
qt send tab: HelpLabel for "pay to" field: update text
...
- maybe make it more readable
- mention new syntax for raw scripts
- see 3ff588049e
2023-10-24 16:47:05 +00:00
SomberNight
66e2c779ea
Merge remote-tracking branch 'remotes/sombernight/202310_merge_duplicate_outputs'
...
see https://github.com/spesmilo/electrum/pull/8474
2023-10-24 14:51:51 +00:00
SomberNight
227e257444
(follow-up) wallet: add option to merge duplicate tx outputs
2023-10-24 14:41:39 +00:00
Sander van Grieken
eb676b3dc1
qml: don't show error when textfield is empty, don't log error when optional propert is undefined
2023-10-23 15:30:56 +02:00
SomberNight
22a8348303
renames: use consistent naming of cltv delta vs cltv abs
...
to avoid confusing relative vs absolute cltvs
(see b0401a6386 )
2023-10-19 16:40:05 +00:00
ThomasV
8d5f9185a4
follow-up #8646
2023-10-14 10:13:27 +02:00
Sander van Grieken
b20a4b9bf1
qml: increase font on seed keyboard, and height of seedkeyboard slightly
2023-10-13 13:42:16 +02:00
Sander van Grieken
8c4532c5cb
qml: properly show warnings in info box in RbfBumpFeeDialog
2023-10-12 16:22:51 +02:00
Sander van Grieken
941f425ff5
qml: update invoice.canPay on channel state changes
...
This re-evaluates invoice.canPay when channels get connected/disconnected (enables/disables Pay button)
2023-10-12 15:53:15 +02:00
Sander van Grieken
8dbb2e0c33
qml: remove eye icon for watch-only wallets from toolbar
2023-10-12 15:17:16 +02:00
SomberNight
57d2efc88d
wallet: merge mktx and create_transaction
2023-10-10 17:45:26 +00:00
ThomasV
e882856d4f
Merge pull request #8646 from accumulator/load_wallet_refactor
...
daemon: refactor load_wallet
2023-10-10 19:33:20 +02:00
SomberNight
65394c37d5
wallet.make_unsigned_transaction: add batch_rbf/send_change params
...
Don't side-effect config just to modify the next call of make_unsigned_transaction >.<
Cleaner to pass parameters.
2023-10-10 17:13:18 +00:00
Sander van Grieken
7ca9b735d5
daemon: refactor load_wallet to not just return None, but raise specific exceptions.
...
The following exceptions should be expected:
FileNotFoundError: given wallet path does not exist
StorageReadWriteError: given file is not readable/writable or containing folder is not writable
InvalidPassword: wallet requires a password but no password or an invalid password was given
WalletFileException: any internal wallet data issue. specific subclasses can be caught separately:
- WalletRequiresSplit: wallet needs splitting (split_data passed in Exception)
- WalletRequiresUpgrade: wallet needs upgrade, and no upgrade=True was passed to load_wallet
- WalletUnfinished: wallet file contains an action and needs additional information to finalize. (WalletDB passed in exception)
Removed qml/qewalletdb.py
This patch also fixes load_wallet calls in electrum/scripts and adds a qml workaround for dialogs opening and closing so
fast that the dialog opened==true property change is missed (which we need to manage the dialog/page stack)
2023-10-10 17:42:07 +02:00
SomberNight
63143307f1
config: follow-up rename of FEE_EST_STATIC_FEERATE
...
follow-up 455167136d
2023-10-10 12:11:45 +00:00