Improve project directory determination
commit8abf31d3c6f559df18505fd1c69ac771b23cd94c
authorJiří Techet <techet@gmail.com>
Sat, 19 Mar 2022 16:32:13 +0000 (19 17:32 +0100)
committerJiří Techet <techet@gmail.com>
Sat, 19 Mar 2022 16:50:30 +0000 (19 17:50 +0100)
tree2a4add55d5e4d33c1c79785564e1e4df2bf050b8
parentf8768399d32b817ecaccd2f28f43e8e0d55a06e6
Improve project directory determination

When using "New from Folder", open the directory selection dialog at
current document's directory to simplify new project creation for
opened files. Fall back to "project files" directory if no file opened
and if this directory isn't set in preferences, fall back to user's
home directory.

In addition take into account that the "project files" directory may not
be set when filling in entries in the "New Project" dialog and fall back
to currently opened document's directory or to home directory when no
document is opened.
src/project.c