config: force 'history_rates' config var to bool
fixes https://github.com/spesmilo/electrum/issues/8367
probably regression from 503776c0de
(note that before that commit, we were casting to bool)
This commit is contained in:
@@ -63,7 +63,7 @@ class QEFX(QObject, QtEventListener):
|
||||
historicRatesChanged = pyqtSignal()
|
||||
@pyqtProperty(bool, notify=historicRatesChanged)
|
||||
def historicRates(self):
|
||||
return self.fx.config.get('history_rates', True)
|
||||
return bool(self.fx.config.get('history_rates', True))
|
||||
|
||||
@historicRates.setter
|
||||
def historicRates(self, checked):
|
||||
|
||||
Reference in New Issue
Block a user