[gnome-notes] window: Use BjbSettings to save last opened item path



commit 4f923d767d87f9175504bbd1f3b4593d1540ba29
Author: Jonathan Kang <jonathankang gnome org>
Date:   Mon Jan 10 15:11:48 2022 +0800

    window: Use BjbSettings to save last opened item path
    
    This fixes the issue where two windows show up on startup, when there
    is no note available.

 src/bjb-window.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/bjb-window.c b/src/bjb-window.c
index 607539aa..8e9688d7 100644
--- a/src/bjb-window.c
+++ b/src/bjb-window.c
@@ -231,7 +231,7 @@ bjb_window_finalize (GObject *object)
     }
   else
     {
-      g_settings_set_string (self->settings, "last-opened-item", ""); 
+      bjb_settings_set_last_opened_item (self->settings, "");
     }
 
   note_view = g_object_get_data (object, "note-view");


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