Remove thumbnail files from cache by uri
This commit is contained in:
parent
42d4ebfdae
commit
28e269365d
1 changed files with 3 additions and 1 deletions
|
@ -5745,11 +5745,13 @@ midori_view_speed_dial_save (MidoriView* view,
|
|||
|
||||
if (g_str_equal (action, "delete"))
|
||||
{
|
||||
gchar* file_path = sokoke_build_thumbnail_path (parts[1]);
|
||||
gchar* uri = g_key_file_get_string (key_file, dial_id, "uri", NULL);
|
||||
gchar* file_path = sokoke_build_thumbnail_path (uri);
|
||||
|
||||
g_key_file_remove_group (key_file, dial_id, NULL);
|
||||
g_unlink (file_path);
|
||||
|
||||
g_free (uri);
|
||||
g_free (file_path);
|
||||
}
|
||||
else if (g_str_equal (action, "add"))
|
||||
|
|
Loading…
Reference in a new issue