[gnome-builder] editor: Drop redundant "restore-previous-files" setting check



commit 7e10b1fbc6fbe5fa236699511bae51efa7f66312
Author: vanadiae <vanadiae35 gmail com>
Date:   Mon Jul 12 23:12:55 2021 +0200

    editor: Drop redundant "restore-previous-files" setting check
    
    It is already done in ide_session_restore_async().

 src/libide/editor/ide-editor-surface.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-surface.c b/src/libide/editor/ide-editor-surface.c
index fefebdf0d..cc6921552 100644
--- a/src/libide/editor/ide-editor-surface.c
+++ b/src/libide/editor/ide-editor-surface.c
@@ -168,15 +168,9 @@ ide_editor_surface_session_restored_cb (GObject      *object,
 static void
 ide_editor_surface_restore_session_state (IdeEditorSurface *self)
 {
-  g_autoptr(GSettings) settings = NULL;
-
   if (!is_primary_workspace (self))
     return;
 
-  settings = g_settings_new ("org.gnome.builder");
-  if (!g_settings_get_boolean (settings, "restore-previous-files"))
-      return;
-
   _ide_editor_surface_set_loading (self, TRUE);
 
   ide_session_restore_async (self->session,


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