[gnome-software/gnome-3-20] 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/gnome-3-20] trivial: Allow the transient state message to be useful
- Date: Tue, 19 Apr 2016 20:55:55 +0000 (UTC)
commit 95962c55a091a87c5c7bcd4b6e26da127d12a508
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 ee79ed4..1783da9 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -569,9 +569,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]