Initially done with PR

This commit is contained in:
apa420
2018-08-26 13:49:15 +02:00
parent 8ea3b6c8ee
commit 15bcb5a2fb
4 changed files with 3 additions and 20 deletions
+2 -6
View File
@@ -115,12 +115,8 @@ void Toasts::sendWindowsNotification(const QString &channelName, Platform p)
WinToastLib::WinToastTemplate::SecondLine);
QString Path;
if (p == Platform::Twitch) {
Path =
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) +
"2/cache/profileAvatars/twitch/" + channelName + ".png";
// Change it to this below v
// Path = getApp()->paths->cacheDirectory() + "profileAvatars/twitch/" +
// channelName + ".png";
Path = getApp()->paths->cacheDirectory() + "/" +
"profileAvatars/twitch/" + channelName + ".png";
}
std::string temp_Utf8 = Path.toUtf8().constData();
std::wstring imagePath = std::wstring(temp_Utf8.begin(), temp_Utf8.end());