cleanup
This commit is contained in:
parent
815adb3983
commit
1f215ae673
|
@ -70,7 +70,8 @@ class HistoryWidget(MyTreeWidget):
|
||||||
item = EditableItem(entry)
|
item = EditableItem(entry)
|
||||||
item.setIcon(0, icon)
|
item.setIcon(0, icon)
|
||||||
for i in range(len(entry)):
|
for i in range(len(entry)):
|
||||||
item.setFont(i, QFont(MONOSPACE_FONT))
|
if i!=2:
|
||||||
|
item.setFont(i, QFont(MONOSPACE_FONT))
|
||||||
if value < 0:
|
if value < 0:
|
||||||
item.setForeground(4, QBrush(QColor("#BC1E1E")))
|
item.setForeground(4, QBrush(QColor("#BC1E1E")))
|
||||||
if tx_hash:
|
if tx_hash:
|
||||||
|
|
|
@ -255,17 +255,6 @@ class Plugin(BasePlugin):
|
||||||
window.fx_fields = {}
|
window.fx_fields = {}
|
||||||
self.add_send_edit(window)
|
self.add_send_edit(window)
|
||||||
self.add_receive_edit(window)
|
self.add_receive_edit(window)
|
||||||
history_list = window.history_list
|
|
||||||
cols = history_list.columnCount()
|
|
||||||
header = history_list.headerItem()
|
|
||||||
labels = [header.text(c) for c in range(history_list.columnCount())]
|
|
||||||
labels.extend([_('Fiat Amount'), _('Fiat Balance')])
|
|
||||||
history_list.setColumnCount(cols + 2)
|
|
||||||
# For unclear reasons setting this column to ResizeToContents
|
|
||||||
# makes e.g. label editing very slow
|
|
||||||
history_list.setColumnWidth(cols, 120)
|
|
||||||
history_list.setColumnWidth(cols + 1, 120)
|
|
||||||
history_list.setHeaderLabels(labels)
|
|
||||||
window.update_status()
|
window.update_status()
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
@ -275,8 +264,7 @@ class Plugin(BasePlugin):
|
||||||
for window in self.parent.windows:
|
for window in self.parent.windows:
|
||||||
window.send_fiat_e.hide()
|
window.send_fiat_e.hide()
|
||||||
window.receive_fiat_e.hide()
|
window.receive_fiat_e.hide()
|
||||||
if self.config_history():
|
window.update_history_tab()
|
||||||
window.history_list.setColumnCount(window.history_list.columnCount() - 2)
|
|
||||||
window.update_status()
|
window.update_status()
|
||||||
|
|
||||||
def set_currencies(self, currency_options):
|
def set_currencies(self, currency_options):
|
||||||
|
|
Loading…
Reference in New Issue