[gnome-software] trivial: Allow the transient state message to be useful
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Allow the transient state message to be useful
- Date: Tue, 19 Apr 2016 17:37:31 +0000 (UTC)
commit b45db8ac36d2800d17b6d8830cf624a4fb9de3e5
Author: Richard Hughes <richard hughsie com>
Date: Tue Apr 19 18:37:09 2016 +0100
trivial: Allow the transient state message to be useful
src/gs-app.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 3a36b51..26e7d6b 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -570,9 +570,11 @@ gs_app_set_state_internal (GsApp *app, AsAppState state)
/* transient, so ignore */
break;
default:
- g_debug ("non-transient state now %s",
- as_app_state_to_string (state));
- app->state_recover = state;
+ if (app->state_recover != state) {
+ g_debug ("%s non-transient state now %s",
+ app->id, as_app_state_to_string (state));
+ app->state_recover = state;
+ }
/* clear the error as the application has changed state */
g_clear_error (&app->last_error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]