diff --git a/src/common/DownloadManager.cpp b/src/common/DownloadManager.cpp index 41d2aad62..38a987060 100644 --- a/src/common/DownloadManager.cpp +++ b/src/common/DownloadManager.cpp @@ -20,7 +20,6 @@ void DownloadManager::setFile(QString fileURL, const QString &channelName) QString filePath = fileURL; QString saveFilePath; QStringList filePathList = filePath.split('/'); - // QString fileName = filePathList.at(filePathList.count() - 1); saveFilePath = QString( QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + "2/cache/profileAvatars/twitch/" + channelName + ".png"); diff --git a/src/common/DownloadManager.hpp b/src/common/DownloadManager.hpp index ac49a927c..a160570c3 100644 --- a/src/common/DownloadManager.hpp +++ b/src/common/DownloadManager.hpp @@ -15,7 +15,7 @@ class DownloadManager : public QObject { Q_OBJECT public: - explicit DownloadManager(QObject *parent = 0); + explicit DownloadManager(QObject *parent = nullptr); virtual ~DownloadManager(); void setFile(QString fileURL, const QString &channelName); diff --git a/src/singletons/Toasts.cpp b/src/singletons/Toasts.cpp index f314a422c..58595e56e 100644 --- a/src/singletons/Toasts.cpp +++ b/src/singletons/Toasts.cpp @@ -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()); diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 448354e13..2ea32bb53 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -559,18 +559,6 @@ void ChannelView::setChannel(ChannelPtr newChannel) if (tc != nullptr) { tc->tabHighlightRequested.connect([this](HighlightState state) { this->tabHighlightRequested.invoke(HighlightState::Notification); - /* - QPainter painter(this); - painter.setRenderHint(QPainter::Antialiasing, true); - painter.translate(2, 2); - painter.setPen(QColor("#6441A4")); - painter.drawEllipse(QRectF(10, 10, 5, 5)); -*/ - - QPainter painter(this); - auto radius = 10; - painter.setPen(QColor("#6441A4")); - painter.drawEllipse(this->rect().center(), radius, radius); }); } }