background: Don't show an error if no cache dir
We don't want to see errors if the directory doesn't exist.
This commit is contained in:
parent
9ac7a0aa32
commit
2866a70f6a
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ dir_enum_async_ready (GObject *source,
|
|||
|
||||
if (err)
|
||||
{
|
||||
g_warning ("Could not fill pictures source: %s", err->message);
|
||||
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) == FALSE)
|
||||
g_warning ("Could not fill pictures source: %s", err->message);
|
||||
g_error_free (err);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue