1
0

move question text

This commit is contained in:
ThomasV
2025-05-07 17:20:24 +02:00
parent 45c7180536
commit 9a61640243

View File

@@ -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