[gnome-software] Avoid setting the mode twice at startup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Avoid setting the mode twice at startup
- Date: Thu, 29 Aug 2013 23:43:17 +0000 (UTC)
commit 5876f7a81b35f33202b08c75592fccc3db798ef7
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 29 19:37:19 2013 -0400
Avoid setting the mode twice at startup
The overview is already the default mode, so no need
to set it explicitly when --mode overview is passed
on the commandline.
src/gs-application.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 957e2bf..474e4ce 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -231,7 +231,7 @@ gs_application_command_line (GApplication *application,
} else if (g_strcmp0 (mode, "installed") == 0) {
gs_shell_set_mode (app->shell, GS_SHELL_MODE_INSTALLED);
} else if (g_strcmp0 (mode, "overview") == 0) {
- gs_shell_set_mode (app->shell, GS_SHELL_MODE_OVERVIEW);
+ /* this is the default */
} else {
g_warning ("Mode '%s' not recognised", mode);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]