[gnome-software/ramcq/loading: 1/8] Revert "Reload the current page again after closing and opening the main window"



commit b869579865132bdc4762cfa606a95ec369956358
Author: Robert McQueen <rob endlessm com>
Date:   Thu Oct 11 11:59:05 2018 +0100

    Revert "Reload the current page again after closing and opening the main window"
    
    This reverts commit b9a39ee3. The only reason the window is being presented
    without an active mode is because ef15f51d removed setting the mode to overview
    in the "default" activate (not --mode=...) case.

 src/gs-shell.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index d179c25b..1f5a0c9d 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -147,11 +147,6 @@ void
 gs_shell_activate (GsShell *shell)
 {
        GsShellPrivate *priv = gs_shell_get_instance_private (shell);
-
-       /* reload the page if we don't have anything currently loaded */
-       if (priv->page == NULL)
-               gs_shell_set_mode (shell, priv->mode);
-
        gtk_window_present (priv->main_window);
 }
 
@@ -785,7 +780,6 @@ main_window_closed_cb (GtkWidget *dialog, GdkEvent *event, gpointer user_data)
                                             "install-resources");
 
        /* When the window is closed, reset the initial mode to overview */
-       g_clear_object (&priv->page);
        priv->mode = GS_SHELL_MODE_OVERVIEW;
 
        gs_shell_clean_back_entry_stack (shell);


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