rendering warnings as html

This commit is contained in:
Vinicius Moreira
2019-08-27 16:28:40 -03:00
parent bcf3bc5862
commit 7b3f21652b

View File

@@ -236,7 +236,7 @@ class ManageWindow(QWidget):
def _show_warnings(self, warnings: List[str]):
if warnings:
dialog.show_message(title=self.locale_keys['warning'].capitalize(), body='\n'.join(warnings), type_=MessageType.WARNING)
dialog.show_message(title=self.locale_keys['warning'].capitalize(), body='<p>{}</p>'.format('<br/>'.join(warnings)), type_=MessageType.WARNING)
def show(self):
super(ManageWindow, self).show()