~alexlauni/do-plugins/jolicloud

« back to all changes in this revision

Viewing changes to File/src/Do/Do.FilesAndFolders/FileItemSource.cs

  • Committer: Alex Launi
  • Date: 2009-06-26 08:51:52 UTC
  • mfrom: (618.1.23 do-plugins)
  • Revision ID: alex.launi@gmail.com-20090626085152-5eodwwbsdeahb11o
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
                                file = item as IFileItem;
100
100
                        else if (item is IUriItem && (item as IUriItem).Uri.StartsWith ("file://"))
101
101
                                file = Plugin.NewFileItem ((item as IUriItem).Uri.Replace ("file://", ""));
102
 
                        else if (item is IApplicationItem)
 
102
                        else if (item is IApplicationItem
 
103
                                        && item.Name == AddinManager.CurrentLocalizer.GetString ("Home Folder"))
 
104
                                file = Plugin.NewFileItem (Plugin.ImportantFolders.UserHome);
 
105
                        else
103
106
                                return Enumerable.Empty<Item> ();
104
107
                        
105
108
                        return RecursiveGetItems (file.Path, 1, Plugin.Preferences.IncludeHiddenFilesWhenBrowsing);