SomberNight
1b2d46722c
kivy request_dialog: rm some magic numbers
...
note: not sure how to use IntEnum with kivy's NumericProperty
2022-08-11 13:50:53 +00:00
SomberNight
7d481935e2
qt ReceiveTab: handle case with URI==""
2022-08-11 13:11:54 +00:00
SomberNight
0e15d7a973
qt RequestList: allow copying URI even if there is no bitcoin addr
...
(when there is LN part but no on-chain part)
2022-08-11 13:09:51 +00:00
SomberNight
659d6890d9
wallet.get_request_URI: rm code duplication
2022-08-11 13:07:56 +00:00
SomberNight
7daeccdf85
qt ReceiveTab: ensure TabWidget has frame in more cases
2022-08-11 12:43:17 +00:00
SomberNight
bd2ca30f95
kivy: fix creating dust amount receive requests
...
fixes https://github.com/spesmilo/electrum/issues/7928
2022-08-11 12:38:46 +00:00
SomberNight
ea5c49b3ab
wallet.delete_request(key): piggyback on get_request(key)
...
So that the two methods are consistent with each other.
As concrete motivation, see e.g.
- how the `getrequest(key)` command calls `wallet.get_request(key)`, and
- the `delete_request(address)` command calls `wallet.delete_request(address)`
2022-08-10 23:48:44 +02:00
SomberNight
0c81dc13a0
wallet: rm confusing get_request_by_address method
...
The _receive_requests dict is keyed by either 'address' or 'rhash' (see get_key_for_receive_request):
- 'rhash' is used if `req.lightning_invoice is not None`
- address is used otherwise
The `get_request_by_address` method was quite error-prone: it only worked for requests that had an LN part...
2022-08-10 23:23:00 +02:00
SomberNight
396a68cb58
wallet: delete_{invoice,request}: add "write_to_disk=True" param
...
to support faster batch-deletion
2022-08-10 22:50:23 +02:00
SomberNight
388811296e
qt: replace some hardcoded pixel sizes for better high-dpi support
2022-08-10 20:23:56 +02:00
SomberNight
05863a611f
tests: test_lnpeer.py: clean-up temp dirs created in /tmp, in tearDown
2022-08-10 18:16:17 +02:00
Axel Gembe
07ee204c9c
Qt Console: Fix font reset when moving between screens
...
When the console was moved between screen boundaries with different scaling
settings, the font was reset. This is because QPlainTextEdit sets the
documents default font back to its own font property when Qt has a font
change event. This patch sets the font property of the editor instead of
the document.
this ports https://github.com/Electron-Cash/Electron-Cash/commit/60d63b3272ed80a207d0bc2c304f5faf3e8a4c50
related: https://github.com/Electron-Cash/Electron-Cash/issues/1314
2022-08-10 16:18:32 +02:00
avirgovi
b5d2b3c512
create chmod aware of XDG_RUNTIME_DIR
...
closes https://github.com/spesmilo/electrum/pull/7681
related https://github.com/spesmilo/electrum/issues/6334
Co-authored-by: avirgovi <avirgovi@cisco.com >
Co-authored-by: SomberNight <somber.night@protonmail.com >
2022-08-09 19:04:17 +02:00
SomberNight
233d2373df
util: implement is_subpath
2022-08-09 18:48:21 +02:00
SomberNight
7b095158bf
wallet: add get_label_for_address, and make get_label private
...
fixes https://github.com/spesmilo/electrum/issues/7919
In the past, when creating payment requests, we keyed them by on-chain address,
and set/saved the msg of the request as label for the address.
Many places in the code were calling wallet.get_label(addr) with the expectation that
relevant payment requests are found and their message/description (if any) is considered.
wallet.get_label(key) is now made private, and instead the explicit non-polymorphic
wallet.get_label_for_{address,rhash,txid} alternatives should be used.
2022-08-09 17:21:14 +02:00
SomberNight
73ba00d7dd
wallet.restore_wallet_from_text: support creating wallet in-memory
2022-08-08 16:34:04 +02:00
ThomasV
48bb4867a4
fix #7920
2022-08-08 12:50:43 +02:00
ThomasV
e8a8c8c3f1
fix #7921
2022-08-08 12:40:44 +02:00
ThomasV
4fcc5a580a
prepare release 4.3.0: update version.py and locale
2022-08-05 14:05:49 +02:00
SomberNight
c421bdaff4
(trivial) qml/qedaemon.py: add missing import
2022-08-04 21:52:22 +02:00
SomberNight
752b37a03b
dependencies: bundle older hidapi in binaries
...
closes https://github.com/spesmilo/electrum/issues/7738
2022-08-04 21:47:50 +02:00
SomberNight
d4f76143b0
qt ReceiveTabWidget: revert prev, and add frame in a different way
...
This reverts commit b97d080617 .
2022-08-03 22:16:24 +02:00
SomberNight
b97d080617
qt ReceiveTabWidget: add frame to "help label", and rm some nesting
2022-08-03 19:39:28 +02:00
ThomasV
58b56b3039
receive_tab: use QStackedWidget instead of QTabWidget
2022-08-03 18:15:56 +02:00
poiuty
018a83078c
remove ca.poiuty.com ( #7913 )
2022-08-03 14:03:27 +00:00
ThomasV
a5965933d2
Fix CTNs in should_be_closed_due_to_expiring_htlcs ( fixes #7906 ).
...
Also fix sending too many fee updates.
Rename lnworker.on_channel_update, that name was misleading.
2022-08-02 18:00:39 +02:00
ThomasV
0c8a828704
follow-up 7dcd8d8dc8
...
- set minimumHeight of VTabWidget (needed for small window size)
- keep self.tabBar visible, otherwise the widget border is rendered with a gap on linux
- apply stylesheet to both tabTar and surrounding widget
- buttons style: align text left, NoFocus
- on button click: setChecked always True, draw qr code at the end because it is slow
2022-07-31 11:33:26 +02:00
ThomasV
98e6bd6f80
Merge pull request #7909 from SomberNight/202207_qt_receive_tab_macos
...
Qt receive_tab: fix receive_tabs widget on macOS
2022-07-31 11:32:01 +02:00
ThomasV
a2e059ce7a
receive_tab: workaround qdarkstyle bug
2022-07-31 09:55:07 +02:00
SomberNight
7dcd8d8dc8
Qt receive_tab: fix receive_tabs widget on macOS
...
QTabWidget with "West" tab pos and horizontal text looks completely broken on macOS
(despite looking good on e.g. Ubuntu GNOME and Windows).
The alternative here looks ok on all three OSes.
fixes https://github.com/spesmilo/electrum/issues/7908
2022-07-30 02:16:38 +02:00
ThomasV
ad9030bd15
labels plugin: handle setting a label to None
2022-07-29 09:38:15 +02:00
ThomasV
cace1b5013
lnwatcher: compare txids instead of tx objects, before calling add_transaction or set_label
2022-07-29 09:22:14 +02:00
Sander van Grieken
3de498907c
qml: delete_wallet and add checks for channels, balance, pending requests
2022-07-28 18:56:27 +02:00
Sander van Grieken
008805d97c
qml: implement initial wallet from master key
2022-07-28 16:55:50 +02:00
Sander van Grieken
e719e70761
qml: fix icon paths
2022-07-28 11:53:20 +02:00
Sander van Grieken
5008cef491
qml: optimize imports
2022-07-28 16:53:05 +02:00
ThomasV
eb9d211378
text GUI: add proper stop method
2022-07-27 12:08:50 +02:00
Sander van Grieken
ae1e7eea4c
qml: make sure the auth_protect decorator finishes when closing Pin dialog without reject/accept
2022-07-26 20:40:27 +02:00
Sander van Grieken
6c21a0ec67
qml: create PasswordField control
2022-07-26 20:40:21 +02:00
Sander van Grieken
e9a1824a77
qml: parent channel open progress dialog to main.qml as it might live longer than OpenChannel
2022-07-26 20:40:13 +02:00
Sander van Grieken
4f3dc7a2cc
qml: fixes
2022-07-26 18:08:32 +02:00
Sander van Grieken
509e0fcc07
qml: initial channel open progress dialog
2022-07-26 18:03:34 +02:00
Sander van Grieken
3b9c009e43
qml: include dialogs in back button navigation
2022-07-26 18:01:25 +02:00
ThomasV
725c70bc4a
text GUI: simplify show_request
2022-07-26 13:16:06 +02:00
Sander van Grieken
33bc35940f
qml: move dialogs out of controls/
2022-07-26 11:30:21 +02:00
Sander van Grieken
a27218dcb7
qml: copy/share the correct data, fix UI issue when no description
2022-07-26 11:30:16 +02:00
ThomasV
43ab4a779a
various updates for the text GUI
2022-07-24 14:48:21 +02:00
ThomasV
a59c8797dc
wallet: write to disk in create_request
2022-07-22 17:01:46 +02:00
Sander van Grieken
83cb7aea9a
qml: fix
2022-07-22 16:37:42 +02:00
Sander van Grieken
b7167c11cf
qml: fix missing parens
2022-07-22 16:27:28 +02:00