mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
fix suggestions error | improving warnings presentation | snapd health check when snapd.service is available
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user