fix suggestions error | improving warnings presentation | snapd health check when snapd.service is available

This commit is contained in:
Vinicius Moreira
2019-09-26 12:07:50 -03:00
parent dae9befefc
commit 9aa069f4be
8 changed files with 53 additions and 25 deletions

View File

@@ -389,7 +389,7 @@ class FindSuggestions(AsyncAction):
def run(self):
sugs = self.man.list_suggestions(limit=-1)
self.notify_finished([s.package for s in sugs] if sugs is not None else [])
self.notify_finished({'pkgs_found': [s.package for s in sugs] if sugs is not None else [], 'error': None})
class ListWarnings(QThread):

View File

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