Sander van Grieken
1c7da01dae
rename qt_common to common_qt
2 years ago
Sander van Grieken
571d16314f
qt: introduce electrum/gui/qt_common, implement remaining trustedcoin views,
...
unify most qml and qt wizard code for trustedcoin,
separate non-GUI trustedcoin wizard definition to trustedcoin.py
2 years ago
SomberNight
b45c84f24f
remove the kivy gui
...
We now use the qml gui on Android, and haven't been maintaining
the kivy GUI for a while.
2 years ago
SomberNight
a187210f90
labels plugin: don't log received data
...
this log line is 120 KB for one of my wallets (not even cherry-picking a large one)
3 years ago
Sander van Grieken
b6863b4854
qml: add LabelSync toggle
3 years ago
SomberNight
312f2641e7
don't use bare except
...
use "except Exception", or if really needed explicitly "except BaseException"
3 years ago
Sander van Grieken
6bbd18dc78
qml: fix flake errors
3 years ago
Sander van Grieken
27999a9583
qml: clean up, generalize plugin gui base, enumerate plugins in gui
...
(still quite crude impl, dynamic enable/disable plugin gui is misaligned
with backend)
3 years ago
Sander van Grieken
32a81d8ee7
qml: initial plugin support, with labelsync mostly implemented
3 years ago
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.
4 years ago
ThomasV
ad9030bd15
labels plugin: handle setting a label to None
4 years ago
SomberNight
c616c3bfad
plugins/labels: better error message when using imported wallets
...
see #6703
5 years ago
SomberNight
4b6c86ecbe
wallet: make labels private, and access to need lock
...
e.g. labels plugin iterated over wallet.labels on asyncio thread while user could trigger an edit from Qt thread
5 years ago
SomberNight
24221f8fca
plugins: fix labels plugin FIXME re "just enabled plugin"
6 years ago
ThomasV
e1ce3aace7
Separate db from storage
...
- storage is content-agnostic
- db and storage are passed to wallet contructor
6 years ago
ThomasV
dbceed2647
Restructure wallet storage:
...
- Perform json deserializations in wallet_db
- use StoredDict class that keeps tracks of its modifications
6 years ago
SomberNight
f60f690ca9
change many str(e) to repr(e) as some exceptions were cryptic
...
it's often valuable to see the type of the exception
(especially as for some exceptions str(e) == '')
7 years ago
SomberNight
3385a94753
logging: basics
7 years ago
SomberNight
8c3ab63504
labels: don't dump trace if failed to connect to server
7 years ago
SomberNight
1f7b56b455
labels plugin: no need for 'proxy_set' callback
7 years ago
SomberNight
026448837f
no more "import *"
...
fixes #5101
fixes #5105
7 years ago
SomberNight
0294844c11
labels plugin qt: only update corresponding window; disconnect signal
7 years ago
Janus
ec5f406f49
plugins: labels: dump response if malformed sync server response
7 years ago
SomberNight
e3b372946a
rm aiosafe decorator. instead: log_exceptions and ignore_exceptions
7 years ago
SomberNight
c4f3fbaca0
labels: fix potential threading issues
...
also handle --offline
7 years ago
Janus
617103bb2a
labels: fix saving single label
8 years ago
ThomasV
8fe066707a
rm import
8 years ago
Janus
6e80ba7b4f
asyncio: labels, crash_reporter, fx: migrate requests use to aiohttp
8 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago