mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
QMediaPlayer::setMedia -> QMediaPlayer::setSource
References: - https://doc.qt.io/qt-5/qmediaplayer.html#setMedia - https://doc-snapshots.qt.io/qt6-dev/qmediaplayer.html#setSource
This commit is contained in:
parent
4ba4a2f33c
commit
4958a13240
|
@ -112,7 +112,7 @@ void NotificationController::playSound()
|
||||||
|
|
||||||
if (currentPlayerUrl != highlightSoundUrl)
|
if (currentPlayerUrl != highlightSoundUrl)
|
||||||
{
|
{
|
||||||
player->setMedia(highlightSoundUrl);
|
player->setSource(highlightSoundUrl);
|
||||||
|
|
||||||
currentPlayerUrl = highlightSoundUrl;
|
currentPlayerUrl = highlightSoundUrl;
|
||||||
}
|
}
|
||||||
|
|
|
@ -469,7 +469,7 @@ void SharedMessageBuilder::triggerHighlights()
|
||||||
// update the media player url if necessary
|
// update the media player url if necessary
|
||||||
if (currentPlayerUrl != this->highlightSoundUrl_)
|
if (currentPlayerUrl != this->highlightSoundUrl_)
|
||||||
{
|
{
|
||||||
player->setMedia(this->highlightSoundUrl_);
|
player->setSource(this->highlightSoundUrl_);
|
||||||
|
|
||||||
currentPlayerUrl = this->highlightSoundUrl_;
|
currentPlayerUrl = this->highlightSoundUrl_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue