Main: chop separators from music directory
Move call from Mapper.cxx.
This commit is contained in:
parent
027b2063ba
commit
c45f205593
@ -145,6 +145,9 @@ glue_mapper_init(Error &error)
|
||||
if (music_dir.IsNull())
|
||||
music_dir = GetUserMusicDir();
|
||||
|
||||
if (!music_dir.IsNull())
|
||||
music_dir.ChopSeparators();
|
||||
|
||||
#ifdef ENABLE_DATABASE
|
||||
if (!music_dir.IsNull()) {
|
||||
const auto music_dir_utf8 = music_dir.ToUTF8();
|
||||
|
@ -92,7 +92,6 @@ mapper_set_music_dir(AllocatedPath &&path)
|
||||
assert(!path.IsNull());
|
||||
|
||||
music_dir_fs = std::move(path);
|
||||
music_dir_fs.ChopSeparators();
|
||||
|
||||
const auto music_dir_utf8 = music_dir_fs.ToUTF8();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user