diff options
author | Michal Hruby <michal.mhr@gmail.com> | 2012-03-07 12:29:30 +0100 |
---|---|---|
committer | Michal Hruby <michal.mhr@gmail.com> | 2012-03-07 12:29:30 +0100 |
commit | af8f01f0be5ab5f569b90a336b2bf3516b391bb7 (patch) | |
tree | 0b2435c95803c55942ed52b2a896acaf2447a50f | |
parent | f3d6b9504ce3093f66a790deceb17701a9d59eeb (diff) |
Ignore partial downloads from Chrome as well
-rw-r--r-- | src/downloads-directory-provider.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/downloads-directory-provider.vala b/src/downloads-directory-provider.vala index 1cb8c67..a1692c7 100644 --- a/src/downloads-directory-provider.vala +++ b/src/downloads-directory-provider.vala @@ -91,7 +91,8 @@ public class DownloadsDirectoryMonitor : DataProvider } // Skip temporary files (eg. in-progress Downloads) - if (file.get_uri ().has_suffix (".part")) + string uri = file.get_uri (); + if (uri.has_suffix (".part") || uri.has_suffix (".crdownload")) return; GLib.FileInfo subject_info; @@ -106,7 +107,6 @@ public class DownloadsDirectoryMonitor : DataProvider return; } - string uri = file.get_uri (); string mimetype = subject_info.get_attribute_string ( FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE); string origin = Path.get_dirname (uri); |