Commit 13fe7af2 authored by Emilio Pozuelo Monfort's avatar Emilio Pozuelo Monfort
Browse files

app-system: always take the new app info

The app info may have changed so always take the new app info
to update the hash table.
parent ad592c81
...@@ -172,9 +172,7 @@ on_apps_tree_changed_cb (GMenuTree *tree, ...@@ -172,9 +172,7 @@ on_apps_tree_changed_cb (GMenuTree *tree,
GMenuTreeEntry *entry = value; GMenuTreeEntry *entry = value;
GDesktopAppInfo *info; GDesktopAppInfo *info;
info = g_hash_table_lookup (self->priv->id_to_info, id); info = gmenu_tree_entry_get_app_info (entry);
if (!info)
info = gmenu_tree_entry_get_app_info (entry);
g_hash_table_insert (self->priv->id_to_info, g_strdup (id), g_object_ref (info)); g_hash_table_insert (self->priv->id_to_info, g_strdup (id), g_object_ref (info));
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment