We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfa3a83 commit e956564Copy full SHA for e956564
Source/Utility/SettingsFile.cpp
@@ -244,7 +244,7 @@ ValueTree SettingsFile::getTheme(String const& name) const
244
245
void SettingsFile::setLastBrowserPathForId(String const& identifier, File& path)
246
{
247
- if (identifier.isEmpty())
+ if (identifier.isEmpty() || !path.exists() || path.isRoot())
248
return;
249
250
settingsTree.getChildWithName("LastBrowserPaths").setProperty(identifier, path.getFullPathName(), nullptr);
0 commit comments