[gnome-software/wip/jrocha/fix-startup: 5/6] Do not go back into the	loading state
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software/wip/jrocha/fix-startup: 5/6] Do not go back into the	loading state
- Date: Wed, 18 Oct 2017 07:17:27 +0000 (UTC)
commit 9dbfd0ed78084a29fdae0ad85421b589984b2dd1
Author: Joaquim Rocha <jrocha endlessm com>
Date:   Tue Oct 17 12:33:52 2017 +0200
    Do not go back into the loading state
    
    When GNOME Software is launched with a CLI option like --details or
    --install, and the user clicks the back button in the UI, it should
    not go back to the loading mode. Instead, it should go to the overview
    mode.
 src/gs-shell.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index 9b21854..ff4158a 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -502,7 +502,8 @@ gs_shell_go_back (GsShell *shell)
 
        switch (entry->mode) {
        case GS_SHELL_MODE_UNKNOWN:
-               /* only happens when the user does --search foobar */
+       case GS_SHELL_MODE_LOADING:
+               /* happens when using --search, --details, --install, etc. options */
                g_debug ("popping back entry for %s", page_name[entry->mode]);
                gs_shell_change_mode (shell, GS_SHELL_MODE_OVERVIEW, NULL, FALSE);
                break;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]