]> git.phdru.name Git - m_librarian.git/commitdiff
Feat(wx/books): Report success
authorOleg Broytman <phd@phdru.name>
Wed, 7 Feb 2024 10:00:55 +0000 (13:00 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 7 Feb 2024 10:00:55 +0000 (13:00 +0300)
[skip ci]

m_librarian/wx/ListBooks.py

index 534d380eb26ca88defc7f1f86abb8d2044482f99..c3dc7cb347fbec9e2e42d4409792a6d863fd7bb3 100644 (file)
@@ -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',