Sander van Grieken
c278d5befc
qml: OpenWalletDialog rework
2022-08-17 11:49:57 +02:00
Sander van Grieken
d76726836d
qml: fixes
2022-08-17 11:49:41 +02:00
ThomasV
4dee6e53b9
Merge pull request #7942 from SomberNight/202208_wallet_nosetlabel
...
wallet: rm `maybe_set_tx_label_based_on_invoices`, just use `get_default_label`
2022-08-16 18:23:34 +02:00
SomberNight
abef454237
qt: better handle unparseable URIs
...
fixes https://github.com/spesmilo/electrum/issues/7941
2022-08-16 15:27:13 +00:00
Sander van Grieken
d52cd2f2e6
qml: don't auto-pop Scan
...
TODO: handle cancel by signal too
2022-08-16 16:35:46 +02:00
Sander van Grieken
742012aee3
qml: add initial sign and broadcast feature to TxDetails/qetxdetails
2022-08-16 16:09:09 +02:00
Sander van Grieken
1c29ef12b5
qml: cosmetic changes
2022-08-16 16:09:05 +02:00
Sander van Grieken
fad9f87303
qml: accept raw tx from send page paste/qrscan and show TxDetails
2022-08-16 16:09:00 +02:00
Sander van Grieken
0f227b177c
qml: use QEAmount setters also in qetxdetails
2022-08-16 10:04:50 +02:00
Sander van Grieken
153a9f3a53
qml: use only genericsharedialog component defined in main
2022-08-16 10:04:44 +02:00
Sander van Grieken
46641e7874
qml: handle unsigned, local tx in history
2022-08-16 10:04:39 +02:00
Sander van Grieken
3dffd3e0b5
qml: don't implicitly send_onchain from ConfirmTxDialog, externalize
2022-08-16 10:04:33 +02:00
Sander van Grieken
46d3aa4515
qml: enable send for watch-only wallets, show raw tx dialog after finalizing
...
also use QEAMount setters in qetxfinalizer instead of re-instantiating
2022-08-16 10:04:28 +02:00
Sander van Grieken
6190498dfc
qml: add setters to QEAmount to allow updating values, as replacing QEAmount instances
...
makes Qt unhappy in a few cases when it still holds references to the old instance, which
happened occasionally in e.g. qetxfinalizer
2022-08-16 10:04:22 +02:00
Sander van Grieken
2ee6683dd0
qml: qetxdetails was missing this in 9eb7ee74e1
2022-08-16 10:03:51 +02:00
ThomasV
a64aa45e85
get default label for txid based on invoices
2022-08-16 08:50:46 +02:00
ThomasV
a11dbb1a76
kivy: save manually entered amount into lightning invoices, as in Qt (related: #7935 )
2022-08-15 12:35:22 +02:00
ThomasV
8486168bbe
fix typo
2022-08-13 07:41:48 +02:00
ThomasV
83feec2cb3
fix #7933
2022-08-12 18:07:38 +02:00
Sander van Grieken
9eb7ee74e1
qml: expose more flags and TxMinedInfo in qetxdetails
2022-08-12 16:39:15 +02:00
Sander van Grieken
74e9c848cc
qml: QEAmount returns 0 when amount is undefined
...
an undefined amount triggers a hard to debug crash when None/undefined is passing the
python/QObject boundary, so let's default to 0
2022-08-12 16:38:18 +02:00
SomberNight
13570a465c
kivy request dialog: follow-up c95791d7ee
...
related https://github.com/spesmilo/electrum/pull/7929
2022-08-12 11:10:54 +00:00
Sander van Grieken
1c852328c0
qml: try-except around data query, history is very unpredictable what's present and what's not
2022-08-12 11:59:59 +02:00
Sander van Grieken
0c3ce4a6b6
qml: add address to bolt11>bip21>address QR caroussel and remove address copy button
...
(conform qt and kivy)
2022-08-12 11:59:48 +02:00
Sander van Grieken
0d7bcb5dd2
qml: refactor HistoryItemDelegate into separate file
2022-08-12 11:59:40 +02:00
ThomasV
f65368f1d0
kivy request dialog: follow-up c95791d7ee:
...
- toggle between text and qr code
- fix minor issues
2022-08-12 11:46:44 +02:00
SomberNight
c95791d7ee
qt/kivy: receive tab: add wallet.ReceiveRequestHelp and refactor
2022-08-12 10:06:13 +02:00
SomberNight
0a6265ef58
qt new_channel_dialog: fix None-handling for lnworker.suggest_peer()
...
fixes https://github.com/spesmilo/electrum/issues/7931
2022-08-12 02:50:52 +00:00
SomberNight
767b058946
qt history tab: fix "View Channel" in context menu
...
related: https://github.com/spesmilo/electrum/issues/7930
2022-08-12 02:30:29 +00:00
SomberNight
ba72abdbf5
kivy request_dialog: default to LN if there is no URI
2022-08-11 19:39:55 +00:00
SomberNight
bd7a6a8f77
qt/kivy receive tab: show error msg when creating req with amt<dust
2022-08-11 14:55:34 +00:00
SomberNight
5f5e6b3cf3
kivy request_dialog: disable "lightning" btn if no LN part
2022-08-11 13:57:25 +00:00
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
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
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 60d63b3272
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
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
ThomasV
48bb4867a4
fix #7920
2022-08-08 12:50:43 +02:00
ThomasV
e8a8c8c3f1
fix #7921
2022-08-08 12:40:44 +02:00
SomberNight
c421bdaff4
(trivial) qml/qedaemon.py: add missing import
2022-08-04 21:52:22 +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
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