storage/Configured: fix fallback music directory
This was accidently disabled when storage plugins were introduced.
This commit is contained in:
parent
b2c523e56d
commit
350d2bcd6e
@ -68,10 +68,7 @@ CreateConfiguredStorage(Error &error)
|
|||||||
assert(!error.IsDefined());
|
assert(!error.IsDefined());
|
||||||
|
|
||||||
auto uri = config_get_string(CONF_MUSIC_DIR, nullptr);
|
auto uri = config_get_string(CONF_MUSIC_DIR, nullptr);
|
||||||
if (uri == nullptr)
|
if (uri != nullptr && uri_has_scheme(uri))
|
||||||
return nullptr;
|
|
||||||
|
|
||||||
if (uri_has_scheme(uri))
|
|
||||||
return CreateConfiguredStorageUri(uri, error);
|
return CreateConfiguredStorageUri(uri, error);
|
||||||
|
|
||||||
return CreateConfiguredStorageLocal(error);
|
return CreateConfiguredStorageLocal(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user