mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix custom highlight sounds not working on Linux
This commit is contained in:
parent
d2450c298b
commit
aaa82dce75
2 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
||||||
#include "util/PostToThread.hpp"
|
#include "util/PostToThread.hpp"
|
||||||
|
|
||||||
#include <IrcConnection>
|
#include <IrcConnection>
|
||||||
|
#include <QJsonArray>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
|
|
|
@ -440,7 +440,7 @@ void TwitchMessageBuilder::parseHighlights()
|
||||||
// update the media player url if necessary
|
// update the media player url if necessary
|
||||||
QUrl highlightSoundUrl;
|
QUrl highlightSoundUrl;
|
||||||
if (app->settings->customHighlightSound) {
|
if (app->settings->customHighlightSound) {
|
||||||
highlightSoundUrl = QUrl(app->settings->pathHighlightSound.getValue());
|
highlightSoundUrl = QUrl::fromLocalFile(app->settings->pathHighlightSound.getValue());
|
||||||
} else {
|
} else {
|
||||||
highlightSoundUrl = QUrl("qrc:/sounds/ping2.wav");
|
highlightSoundUrl = QUrl("qrc:/sounds/ping2.wav");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue