[gnome-software] snap: Remove set_state code that is already done by gs_app_set_state_recover
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Remove set_state code that is already done by gs_app_set_state_recover
- Date: Wed, 26 Oct 2016 23:16:00 +0000 (UTC)
commit 3922d029f764f2fe601cba6eb786ff157a40e955
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Oct 27 12:03:49 2016 +1300
snap: Remove set_state code that is already done by gs_app_set_state_recover
src/plugins/gs-plugin-snap.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index 1bf5edb..e3b6fc6 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -476,7 +476,6 @@ gs_plugin_app_remove (GsPlugin *plugin,
gs_app_set_state (app, AS_APP_STATE_REMOVING);
if (!gs_snapd_remove (macaroon, discharges, gs_app_get_id (app), progress_cb, app, cancellable,
error)) {
gs_app_set_state_recover (app);
- gs_app_set_state (app, AS_APP_STATE_INSTALLED);
return FALSE;
}
gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]