mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 18:46:46 +01:00
TagReaderTagLib: Touch file over saving cover art
This commit is contained in:
parent
49384ce294
commit
2b9e7db924
@ -1356,7 +1356,15 @@ bool TagReaderTagLib::SaveEmbeddedArt(const spb::tagreader::SaveEmbeddedArtReque
|
|||||||
// Not supported.
|
// Not supported.
|
||||||
else return false;
|
else return false;
|
||||||
|
|
||||||
return fileref.file()->save();
|
const bool result = fileref.file()->save();
|
||||||
|
#ifdef Q_OS_LINUX
|
||||||
|
if (result) {
|
||||||
|
// Linux: inotify doesn't seem to notice the change to the file unless we change the timestamps as well. (this is what touch does)
|
||||||
|
utimensat(0, QFile::encodeName(filename).constData(), nullptr, 0);
|
||||||
|
}
|
||||||
|
#endif // Q_OS_LINUX
|
||||||
|
|
||||||
|
return result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user