[kupfer] data: Check all sources; reload even dynamic sources on load



commit 6534207f5fe7942a30e2db811d92c44187439bf8
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Nov 19 23:44:23 2009 +0100

    data: Check all sources; reload even dynamic sources on load
    
    In SourceController.cache_toplevel_sources, cache even dynamic sources
    -- this gives Kupfer a chance to catch exceptions early and disable
    the relevant plugins.
    
    This fixes a change in behavior from c17 to c18, now the Special Items
    (Trash functionality) will be disabled properly again if it raises on
    first refresh.
    
    The real fix for users is to install gvfs.
    
    With thanks to Jan for providing info to help fixing this bug.

 kupfer/data.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/data.py b/kupfer/data.py
index 3c13c5c..f45ca50 100644
--- a/kupfer/data.py
+++ b/kupfer/data.py
@@ -460,8 +460,7 @@ class SourceController (pretty.OutputMixin):
 	def cache_toplevel_sources(self):
 		"""Ensure that all toplevel sources are cached"""
 		for src in set(self.toplevel_sources):
-			if not src.is_dynamic():
-				self._checked_rescan_source(src, force=False)
+			self._checked_rescan_source(src, force=False)
 
 _source_controller = None
 def GetSourceController():



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