Commit c45f2055 authored by Max Kellermann's avatar Max Kellermann

Main: chop separators from music directory

Move call from Mapper.cxx.
parent 027b2063
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment