]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/wx/ListBooks.py
Feat(wx/books): Report success
[m_librarian.git] / m_librarian / wx / ListBooks.py
index fcf7eab52c9b7d3d112872a5dabab0f9a58105a0..c3dc7cb347fbec9e2e42d4409792a6d863fd7bb3 100644 (file)
@@ -193,13 +193,20 @@ 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',
-            style=wx.OK|wx.ICON_ERROR, parent=self.Parent)
+            style=wx.OK | wx.ICON_ERROR, parent=self.Parent)
 
 
 class ListBooksWindow(GridWindow):