1
0

qml: show backup type, as in qt

This commit is contained in:
Sander van Grieken
2023-07-10 14:45:36 +02:00
parent a572b9bf87
commit 86d79f3ec9
2 changed files with 21 additions and 0 deletions

View File

@@ -190,6 +190,12 @@ class QEChannelDetails(AuthMixin, QObject, QtEventListener):
def isBackup(self):
return self._channel.is_backup()
@pyqtProperty(str, notify=channelChanged)
def backupType(self):
if not self.isBackup:
return ''
return 'imported' if self._channel.is_imported else 'on-chain'
@pyqtProperty(int, notify=channelChanged)
def toSelfDelay(self):
return self._channel.config[REMOTE].to_self_delay