mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 20:54:15 +02:00
[view/qt/settings] refactoring: more on String formatting method
This commit is contained in:
@@ -128,7 +128,7 @@ class SettingsWindow(QWidget):
|
||||
msg.write(f"<p>{self.i18n['settings.error']}</p>")
|
||||
|
||||
for w in warnings:
|
||||
msg.write('<p style="font-weight: bold">* ' + w + '</p><br/>')
|
||||
msg.write(f'<p style="font-weight: bold">* {w}</p><br/>')
|
||||
|
||||
msg.seek(0)
|
||||
dialog.show_message(title=self.i18n['warning'].capitalize(), body=msg.read(), type_=MessageType.WARNING)
|
||||
|
||||
Reference in New Issue
Block a user