open twitch usercard on middle mouse (#1669)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
Daniel Pasch
2020-05-10 12:45:19 +02:00
committed by GitHub
parent 8532c6d3bc
commit be6ef6dcd5
6 changed files with 47 additions and 7 deletions
@@ -16,6 +16,7 @@
#include "singletons/Settings.hpp"
#include "singletons/Theme.hpp"
#include "util/CombinePath.hpp"
#include "util/Twitch.hpp"
#include "widgets/dialogs/UserInfoPopup.hpp"
#include <QApplication>
@@ -437,8 +438,8 @@ QString CommandController::execCommand(const QString &textNoEmoji,
channelName.remove(0, 1);
}
}
QDesktopServices::openUrl("https://www.twitch.tv/popout/" +
channelName + "/viewercard/" + words[1]);
openTwitchUsercard(channelName, words[1]);
return "";
}
else if (commandName == "/usercard")