[Github-comments] [geany/geany] Save main and project configuration whenever documents are opened/closed (#2114)

Nick Treleaven notifications at xxxxx
Wed Jun 5 10:33:41 UTC 2019


ntrel commented on this pull request.



>  void configuration_init(void)
 {
 	keyfile_groups = g_ptr_array_new();
 	pref_groups = g_ptr_array_new();
 	init_pref_groups();
+
+	g_signal_connect(geany_object, "document-new", G_CALLBACK(document_list_changed_cb), NULL);
+	g_signal_connect(geany_object, "document-open", G_CALLBACK(document_list_changed_cb), NULL);
+	g_signal_connect(geany_object, "document-save", G_CALLBACK(document_list_changed_cb), NULL);

Why is document-new connected to? If there's no file yet it won't affect the session.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2114#discussion_r290675990
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190605/9d0037f6/attachment.html>


More information about the Github-comments mailing list