fixed toasts for all platforms

This commit is contained in:
apa420
2018-08-29 23:39:02 +02:00
parent 01ca055763
commit 5555c41d7e
4 changed files with 13 additions and 7 deletions
+5 -4
View File
@@ -1,6 +1,9 @@
#include "DownloadManager.hpp"
#include "singletons/Paths.hpp"
#include <QDesktopServices>
#include <QDir>
namespace chatterino {
@@ -20,10 +23,8 @@ void DownloadManager::setFile(QString fileURL, const QString &channelName)
QString filePath = fileURL;
QString saveFilePath;
QStringList filePathList = filePath.split('/');
saveFilePath = QString(
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) +
"2/cache/profileAvatars/twitch/" + channelName + ".png");
saveFilePath =
getPaths()->twitchProfileAvatars + "/twitch/" + channelName + ".png";
QNetworkRequest request;
request.setUrl(QUrl(fileURL));
reply = manager->get(request);