[Github-comments] [geany/geany] Add option to hide project close/save warning when opening new project (PR #2949)
elextr
notifications at xxxxx
Wed Oct 20 04:20:30 UTC 2021
@elextr 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)
I think `app->project->file_name` is a UTF-8 filename, not a locale filename, so they might not compare in non-UTF-8 locales
--
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#pullrequestreview-783986296
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211019/e762bd56/attachment.htm>
More information about the Github-comments
mailing list