[gnome-software/gnome-3-22] Start monitoring the network when the UI is initialized
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] Start monitoring the network when the UI is initialized
- Date: Thu, 1 Dec 2016 14:34:15 +0000 (UTC)
commit c41bd5ac452816b05988e52d715be0adfdb1a8c0
Author: Joaquim Rocha <jrocha endlessm com>
Date: Thu Nov 17 17:08:31 2016 +0100
Start monitoring the network when the UI is initialized
Otherwise, depending on the action with which GNOME Software is
activated, it may not monitor the network which means it will assume
that it is always offline.
src/gs-application.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 7a27181..13210c9 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -325,6 +325,9 @@ gs_application_initialize_ui (GsApplication *app)
gs_shell_setup (app->shell, app->plugin_loader, app->cancellable);
gtk_application_add_window (GTK_APPLICATION (app), gs_shell_get_window (app->shell));
+
+ /* monitor the network as the many UI operations need the network */
+ gs_application_monitor_network (app);
}
static void
@@ -632,7 +635,6 @@ filename_activated (GSimpleAction *action,
const gchar *filename;
gs_application_initialize_ui (app);
- gs_application_monitor_network (GS_APPLICATION (app));
g_variant_get (parameter, "(&s)", &filename);
gs_shell_show_filename (app->shell, filename);
@@ -791,7 +793,6 @@ gs_application_activate (GApplication *application)
GsApplication *app = GS_APPLICATION (application);
gs_application_initialize_ui (GS_APPLICATION (application));
- gs_application_monitor_network (GS_APPLICATION (application));
/* start metadata loading screen */
if (gs_shell_get_mode (app->shell) == GS_SHELL_MODE_UNKNOWN) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]