From: Oleg Broytman Date: Wed, 7 Feb 2024 10:00:55 +0000 (+0300) Subject: Feat(wx/books): Report success X-Git-Tag: 0.3.0~4 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c2333be6e43aaf6232f58a5249c875317e93230c;p=m_librarian.git Feat(wx/books): Report success [skip ci] --- diff --git a/m_librarian/wx/ListBooks.py b/m_librarian/wx/ListBooks.py index 534d380..c3dc7cb 100644 --- a/m_librarian/wx/ListBooks.py +++ b/m_librarian/wx/ListBooks.py @@ -193,9 +193,16 @@ class ListBooksPanel(GridPanel): except Exception as e: self.report_error(str(e)) else: - if not found_books: + if found_books: + self.report_success(u'Книги сохранены.') + else: self.report_error(u'Не выбрано книг для сохранения.') + def report_success(self, message): + wx.MessageBox( + message, caption='m_Librarian download finished', + style=wx.OK, parent=self.Parent) + def report_error(self, error): wx.MessageBox( error, caption='m_Librarian download error',