qml: show swap service problem to user
This commit is contained in:
@@ -17,6 +17,7 @@ ElDialog {
|
||||
|
||||
parent: Overlay.overlay
|
||||
modal: true
|
||||
z: 1 // raise z so it also covers dialogs using overlay as parent
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
|
||||
@@ -184,6 +184,7 @@ class QESwapHelper(AuthMixin, QObject):
|
||||
asyncio.run(swap_manager.get_pairs())
|
||||
self._service_available = True
|
||||
except Exception as e:
|
||||
self.error.emit(_('Swap service unavailable'))
|
||||
self._logger.error(f'could not get pairs for swap: {repr(e)}')
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user