Adding confirmation icons in Tachikoma's pull request, following considerations on security
This commit is contained in:
parent
cdf81f370b
commit
d8bebdccf6
|
@ -1,6 +1,11 @@
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/" >
|
<qresource prefix="/" >
|
||||||
<file>electrum.png</file>
|
<file>electrum.png</file>
|
||||||
|
<file>icons/clock1.png</file>
|
||||||
|
<file>icons/clock2.png</file>
|
||||||
|
<file>icons/clock3.png</file>
|
||||||
|
<file>icons/clock4.png</file>
|
||||||
|
<file>icons/clock5.png</file>
|
||||||
<file>icons/confirmed.png</file>
|
<file>icons/confirmed.png</file>
|
||||||
<file>icons/lock.png</file>
|
<file>icons/lock.png</file>
|
||||||
<file>icons/preferences.png</file>
|
<file>icons/preferences.png</file>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 946 B |
Binary file not shown.
After Width: | Height: | Size: 944 B |
Binary file not shown.
After Width: | Height: | Size: 946 B |
Binary file not shown.
After Width: | Height: | Size: 962 B |
Binary file not shown.
After Width: | Height: | Size: 956 B |
|
@ -410,6 +410,9 @@ class ElectrumWindow(QMainWindow):
|
||||||
if tx['height']:
|
if tx['height']:
|
||||||
conf = self.wallet.blocks - tx['height'] + 1
|
conf = self.wallet.blocks - tx['height'] + 1
|
||||||
time_str = datetime.datetime.fromtimestamp( tx['timestamp']).isoformat(' ')[:-3]
|
time_str = datetime.datetime.fromtimestamp( tx['timestamp']).isoformat(' ')[:-3]
|
||||||
|
if conf < 6:
|
||||||
|
icon = QIcon(":icons/clock%d.png"%conf)
|
||||||
|
else:
|
||||||
icon = QIcon(":icons/confirmed.png")
|
icon = QIcon(":icons/confirmed.png")
|
||||||
else:
|
else:
|
||||||
conf = 0
|
conf = 0
|
||||||
|
|
Loading…
Reference in New Issue