[pitivi] medialibrary: Hide the infobar when sources start importing



commit c4cb00e99a2d1dbd62ac73bf4db4234eb27d54a3
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Tue Aug 28 16:17:01 2012 -0700

    medialibrary: Hide the infobar when sources start importing
    
    This allows it to hide properly again when loading projects

 pitivi/medialibrary.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 30716bc..54c55d5 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -834,9 +834,6 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
         """ a file was added to the medialibrary """
         self._updateProgressbar()
         self._addDiscovererInfo(factory)
-        if len(self.storemodel):
-            self.infobar.hide_all()
-            self.search_hbox.show_all()
 
     def _sourceRemovedCb(self, unused_medialibrary, uri, unused_info):
         """ the given uri was removed from the medialibrary """
@@ -858,6 +855,8 @@ class MediaLibraryWidget(gtk.VBox, Loggable):
 
     def _sourcesStartedImportingCb(self, unused_medialibrary):
         self.import_start_time = time.time()
+        self.infobar.hide_all()
+        self.search_hbox.show_all()
         self._progressbar.show()
 
     def _sourcesStoppedImportingCb(self, unused_medialibrary):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]