Reboot of #1908. I've cherry-picked @StephenWassell's 2 commits and added a fix commit: * `editor_prefs.skip_project_ask_close` -> `project_prefs.project_ask_close` * Group it with UI rather than editor. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2171
-- Commit Summary --
* #1907 Add preferences flag to skip the project_ask_close dialog * #1907 Add preferences flag to skip the project_ask_close dialog - document * editor_prefs.skip_project_ask_close -> project_prefs.project_ask_close
-- File Changes --
M doc/geany.txt (2) M src/project.c (9) M src/project.h (1) M src/ui_utils.c (2)
-- Patch Links --
https://github.com/geany/geany/pull/2171.patch https://github.com/geany/geany/pull/2171.diff
gennad commented on this pull request.
@@ -654,17 +654,16 @@ gboolean project_ask_close(void)
{ if (app->project != NULL) { - if (dialogs_show_question_full(NULL, GTK_STOCK_CLOSE, GTK_STOCK_CANCEL, + if (!project_prefs.project_ask_close ||
Should it not be
``` if (project_prefs.project_ask_close && dialogs_show_question_full(NULL, GTK_STOCK_CLOSE, GTK_STOCK_CANCEL) ``` ```
Closed as #2178 is merged.
Closed #2171.
github-comments@lists.geany.org