trivial: Fix a debug statement when no devices are detected

This commit is contained in:
Richard Hughes 2016-01-06 14:57:20 +00:00
parent b1b59d83cb
commit 0a36f44bc7

View File

@ -811,14 +811,18 @@ fu_main_store_delay_cb (gpointer user_data)
guint i;
FuMainPrivate *priv = (FuMainPrivate *) user_data;
g_debug ("devices now in store:");
apps = as_store_get_apps (priv->store);
if (apps->len == 0) {
g_debug ("no devices in store");
} else {
g_debug ("devices now in store:");
for (i = 0; i < apps->len; i++) {
app = g_ptr_array_index (apps, i);
g_debug ("%i\t%s\t%s", i + 1,
as_app_get_id (app),
as_app_get_name (app, NULL));
}
}
priv->store_changed_id = 0;
return G_SOURCE_REMOVE;
}