[Github-comments] [geany/geany] Don't reopen project files that are already open (PR #2951)

xiota notifications at xxxxx
Sun Oct 24 04:03:41 UTC 2021


@xiota commented on this pull request.



> @@ -631,8 +631,13 @@ static void handle_input_filename(const gchar *buf)
 	{
 		if (g_str_has_suffix(locale_filename, ".geany"))
 		{
-			if (project_ask_close())
-				main_load_project_from_command_line(locale_filename, TRUE);
+			/* Don't open project when it is already opened */
+			if (!app->project || !(g_strcmp0(app->project->file_name, locale_filename) == 0

I wanted to make extra sure that the open project would be left alone.

I'll make this change you've suggested, and also look for where to disable opening the project from the menu, as you suggested in another comment.

-- 
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/2951#discussion_r735059364
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211023/ae441f06/attachment-0001.htm>


More information about the Github-comments mailing list