[gnome-software/ADD_SHORTCUT: 5/5] trivial: Show a debug message about having no plugins handling shortcuts



commit d9975b9ec5902b6e3ec53a955767317e47bcb010
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Wed Apr 20 15:20:03 2016 +0200

    trivial: Show a debug message about having no plugins handling shortcuts

 src/gs-shell-details.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index a2f92eb..1636682 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -171,8 +171,10 @@ gs_shell_details_update_shortcut_button (GsShellDetails *self)
 
        gtk_widget_set_visible (self->button_details_shortcut, enable_shortcut_button);
 
-       if (!enable_shortcut_button)
+       if (!enable_shortcut_button) {
+               g_debug ("No plugin adding/removing shortcuts, hiding the button...");
                return;
+       }
 
        gtk_widget_set_sensitive (self->button_details_shortcut, TRUE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]