move question text
This commit is contained in:
@@ -2696,14 +2696,20 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
|
|||||||
warnings.add(warning)
|
warnings.add(warning)
|
||||||
|
|
||||||
for warning in list(warnings)[:3]:
|
for warning in list(warnings)[:3]:
|
||||||
warning = _("An ongoing operation prevents Electrum from closing:") + "\n\n" + warning
|
warning = ''.join([
|
||||||
result = self.question(
|
_("Are you sure you want to close Electrum?"),
|
||||||
msg=warning,
|
'\n\n',
|
||||||
icon=QMessageBox.Icon.Warning,
|
_("An ongoing operation prevents Electrum from closing:"),
|
||||||
title=_("Are you sure you want to close?"),
|
'\n',
|
||||||
)
|
warning
|
||||||
if not result:
|
])
|
||||||
break
|
result = self.question(
|
||||||
|
msg=warning,
|
||||||
|
icon=QMessageBox.Icon.Warning,
|
||||||
|
title=_("Warning"),
|
||||||
|
)
|
||||||
|
if not result:
|
||||||
|
break
|
||||||
else:
|
else:
|
||||||
# user chose to cancel all warnings or there were no warnings
|
# user chose to cancel all warnings or there were no warnings
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user