From c2333be6e43aaf6232f58a5249c875317e93230c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 7 Feb 2024 13:00:55 +0300 Subject: [PATCH] Feat(wx/books): Report success [skip ci] --- m_librarian/wx/ListBooks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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', -- 2.39.5