fixes for last commit

This commit is contained in:
fourtf
2019-08-01 13:30:58 +02:00
parent aac27c2a0d
commit e7d9422431
5 changed files with 56 additions and 14 deletions
@@ -796,19 +796,19 @@ void TwitchMessageBuilder::parseHighlights(bool isPastMsg)
? QUrl::fromLocalFile(getSettings()->pathHighlightSound.getValue())
: QUrl("qrc:/sounds/ping2.wav");
if (currentPlayerUrl != highlightSoundUrl)
{
player->setMedia(highlightSoundUrl);
// if (currentPlayerUrl != highlightSoundUrl)
// {
// player->setMedia(highlightSoundUrl);
currentPlayerUrl = highlightSoundUrl;
}
// currentPlayerUrl = highlightSoundUrl;
// }
// TODO: This vector should only be rebuilt upon highlights being changed
// fourtf: should be implemented in the HighlightsController
std::vector<HighlightPhrase> activeHighlights =
app->highlights->phrases.getVector();
app->highlights->phrases.cloneVector();
std::vector<HighlightPhrase> userHighlights =
app->highlights->highlightedUsers.getVector();
app->highlights->highlightedUsers.cloneVector();
if (getSettings()->enableSelfHighlight && currentUsername.size() > 0)
{