mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
testing emoji because having windows 8 sucks
This commit is contained in:
parent
e58e76ef1e
commit
8f77dccb91
|
@ -74,7 +74,6 @@ void NotificationController::removeChannelNotification(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////
|
|
||||||
void NotificationController::playSound()
|
void NotificationController::playSound()
|
||||||
{
|
{
|
||||||
static auto player = new QMediaPlayer;
|
static auto player = new QMediaPlayer;
|
||||||
|
@ -94,7 +93,7 @@ void NotificationController::playSound()
|
||||||
}
|
}
|
||||||
player->play();
|
player->play();
|
||||||
}
|
}
|
||||||
///////////////////////////////////////////////////
|
|
||||||
NotificationModel *NotificationController::createModel(QObject *parent,
|
NotificationModel *NotificationController::createModel(QObject *parent,
|
||||||
Platform p)
|
Platform p)
|
||||||
{
|
{
|
||||||
|
|
|
@ -68,10 +68,6 @@ void Toasts::sendChannelNotification(const QString &channelName, Platform p)
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
|
|
||||||
/*const override void CustomToastHandler::toastActivated()
|
|
||||||
{
|
|
||||||
}*/
|
|
||||||
|
|
||||||
class CustomHandler : public WinToastLib::IWinToastHandler
|
class CustomHandler : public WinToastLib::IWinToastHandler
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
@ -122,6 +118,9 @@ void Toasts::sendWindowsNotification(const QString &channelName, Platform p)
|
||||||
Path =
|
Path =
|
||||||
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) +
|
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) +
|
||||||
"2/cache/profileAvatars/twitch/" + channelName + ".png";
|
"2/cache/profileAvatars/twitch/" + channelName + ".png";
|
||||||
|
// Change it to this below v
|
||||||
|
// Path = getApp()->paths->cacheDirectory() + "profileAvatars/twitch/" +
|
||||||
|
// channelName + ".png";
|
||||||
}
|
}
|
||||||
std::string temp_Utf8 = Path.toUtf8().constData();
|
std::string temp_Utf8 = Path.toUtf8().constData();
|
||||||
std::wstring imagePath = std::wstring(temp_Utf8.begin(), temp_Utf8.end());
|
std::wstring imagePath = std::wstring(temp_Utf8.begin(), temp_Utf8.end());
|
||||||
|
|
|
@ -383,6 +383,9 @@ void SplitHeader::updateChannelText()
|
||||||
} else {
|
} else {
|
||||||
title += " (live)";
|
title += " (live)";
|
||||||
}
|
}
|
||||||
|
if (getSettings()->notificationDot) {
|
||||||
|
title += QByteArray(" 🔴 ");
|
||||||
|
}
|
||||||
if (getSettings()->showViewerCount) {
|
if (getSettings()->showViewerCount) {
|
||||||
title += " - " + QString::number(streamStatus->viewerCount) +
|
title += " - " + QString::number(streamStatus->viewerCount) +
|
||||||
" viewers";
|
" viewers";
|
||||||
|
|
Loading…
Reference in a new issue