1
0

complete and refactor Fx preferences and use in Send/Receive tabs

This commit is contained in:
Sander van Grieken
2022-04-05 13:57:42 +02:00
parent e30cb4ed5f
commit d3e2737308
8 changed files with 179 additions and 91 deletions

View File

@@ -68,16 +68,6 @@ class QEConfig(QObject):
self.config.amt_add_thousands_sep = checked
self.thousandsSeparatorChanged.emit()
fiatCurrencyChanged = pyqtSignal()
@pyqtProperty(str, notify=fiatCurrencyChanged)
def fiatCurrency(self):
return self.config.get('currency')
@fiatCurrency.setter
def fiatCurrency(self, currency):
self.config.set_key('currency', currency)
self.fiatCurrencyChanged.emit()
@pyqtSlot('qint64', result=str)
@pyqtSlot('qint64', bool, result=str)
def formatSats(self, satoshis, with_unit=False):