Skip to content

Commit

Permalink
Fix shouldFileOpen
Browse files Browse the repository at this point in the history
In #3587 the location for autosave files was moved from the
.config folder to the .cache folder
  • Loading branch information
rolandlo authored and Febbe committed Sep 13, 2023
1 parent 83e60f0 commit ed4a374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/control/Control.cpp
Expand Up @@ -2268,7 +2268,7 @@ auto Control::newFile(string pageTemplate, fs::path filepath) -> bool {
* Check if this is an autosave file, return false in this case and display a user instruction
*/
auto Control::shouldFileOpen(fs::path const& filepath) const -> bool {
auto basePath = Util::getConfigSubfolder("");
auto basePath = Util::getCacheSubfolder("");
auto isChild = Util::isChildOrEquivalent(filepath, basePath);
if (isChild) {
string msg = FS(_F("Do not open Autosave files. They may will be overwritten!\n"
Expand Down

0 comments on commit ed4a374

Please sign in to comment.