open twitch usercard on middle mouse (#1669)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include "util/Twitch.hpp"
|
||||
|
||||
#include <QDesktopServices>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
void openTwitchUsercard(QString channel, QString username)
|
||||
{
|
||||
QDesktopServices::openUrl("https://www.twitch.tv/popout/" + channel +
|
||||
"/viewercard/" + username);
|
||||
}
|
||||
} // namespace chatterino
|
||||
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
void openTwitchUsercard(const QString channel, const QString username);
|
||||
|
||||
} // namespace chatterino
|
||||
Reference in New Issue
Block a user