[gnome-software] Do not go back into the loading state



commit 144e207ff3a8bf86c01e90bdb12f405384f91a9f
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]