[Github-comments] [geany/geany] Add option to hide project close/save warning when opening new project (PR #2949)

xiota notifications at xxxxx
Wed Oct 20 08:39:05 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 != NULL &&
+					g_strcmp0(app->project->file_name, locale_filename) != 0)

Thanks.  Changed to convert the project filename before comparison.

-- 
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/2949#discussion_r732542248
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211020/530f80ae/attachment-0001.htm>


More information about the Github-comments mailing list