[gnome-builder] app: start loading projects before the window has been displayed



commit 1a981595c24439f4b8a58ceb5459badd9c4b42fa
Author: Christian Hergert <chergert redhat com>
Date:   Tue Mar 1 18:30:21 2016 -0800

    app: start loading projects before the window has been displayed

 libide/ide-application.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-application.c b/libide/ide-application.c
index 884f4c3..b1df589 100644
--- a/libide/ide-application.c
+++ b/libide/ide-application.c
@@ -333,6 +333,14 @@ ide_application_startup (GApplication *application)
       modeline_parser_init ();
     }
 
+  if (self->mode == IDE_APPLICATION_MODE_PRIMARY)
+    {
+      /*
+       * Start loading recent projects as early as we can.
+       */
+      (void)ide_application_get_recent_projects (self);
+    }
+
   _ide_battery_monitor_init ();
 
   G_APPLICATION_CLASS (ide_application_parent_class)->startup (application);


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