Commit 14874880 authored by Christian Hergert's avatar Christian Hergert
Browse files

flatpak: add some tracing to package installation

parent b682f8e2
......@@ -181,16 +181,20 @@ gbp_flatpak_workbench_addin_install_cb (GObject *object,
g_autoptr(GError) error = NULL;
GAction *action;
g_assert (IDE_IS_TRANSFER_MANAGER (manager));
g_assert (G_IS_ASYNC_RESULT (result));
action = g_action_map_lookup_action (G_ACTION_MAP (self->actions),
action = g_action_map_lookup_action (G_ACTION_MAP (self->actions), "install-flatpak-builder");
g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE);
if (!ide_transfer_manager_execute_finish (manager, result, &error))
/* TODO: Write to message bar */
g_warning ("%s", error->message);
/* TODO: Write to message bar */
g_warning ("Installation of flatpak-builder failed: %s", error->message);
IdeContext *context = ide_object_get_context (IDE_OBJECT (manager));
......@@ -200,11 +204,10 @@ gbp_flatpak_workbench_addin_install_cb (GObject *object,
* because we know it is invalidated.
g_signal_emit_by_name (config_manager, "invalidate");
gtk_widget_hide (GTK_WIDGET (self->message));
g_simple_action_set_enabled (G_SIMPLE_ACTION (action), TRUE);
static void
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