[gnome-notes] application: Fix duplicated window on startup
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] application: Fix duplicated window on startup
- Date: Tue, 11 Jan 2022 15:37:31 +0000 (UTC)
commit cfa5b5ababb3583c569fe18872e3d1c301000098
Author: Jonathan Kang <jonathankang gnome org>
Date: Mon Jan 10 15:09:06 2022 +0800
application: Fix duplicated window on startup
Don't open the note directly using bijiben_open_path when loading the
note opened last time. Push it to "files_to_open" queue and leave rest
of the work there.
src/bjb-application.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/bjb-application.c b/src/bjb-application.c
index 9d660a98..595acadc 100644
--- a/src/bjb-application.c
+++ b/src/bjb-application.c
@@ -516,7 +516,7 @@ bijiben_startup (GApplication *application)
/* Load last opened note item. */
path = bjb_settings_get_last_opened_item (self->settings);
- if (!bijiben_open_path (self, path, NULL))
+ if (g_strcmp0 (path, "") != 0)
g_queue_push_head (&self->files_to_open, path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]