Fix inability to save the user directory
This commit is contained in:
parent
539fbf6442
commit
0a40e29a8b
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,8 @@ static const fs::path getSettingsPath()
|
|||
dirPath /= "SFZTools";
|
||||
dirPath /= "sfizz";
|
||||
std::error_code ec;
|
||||
if (!fs::create_directories(dirPath, ec))
|
||||
fs::create_directories(dirPath, ec);
|
||||
if (ec)
|
||||
return {};
|
||||
return dirPath / "settings.xml";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue