Added more ignored words for opening new split from context menu.
This commit is contained in:
@@ -1254,7 +1254,7 @@ void ChannelView::addContextMenuItems(
|
|||||||
QGuiApplication::clipboard()->setText(copyString);
|
QGuiApplication::clipboard()->setText(copyString);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Join to channel
|
// Open in new split.
|
||||||
if (hoveredElement->getLink().type == Link::Url) {
|
if (hoveredElement->getLink().type == Link::Url) {
|
||||||
static QRegularExpression twitchChannelRegex(
|
static QRegularExpression twitchChannelRegex(
|
||||||
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?<username>[a-z0-9_]+))",
|
R"(^(?:https?:\/\/)?(?:www\.|go\.)?twitch\.tv\/(?<username>[a-z0-9_]+))",
|
||||||
@@ -1262,6 +1262,13 @@ void ChannelView::addContextMenuItems(
|
|||||||
static QSet<QString> ignoredUsernames{
|
static QSet<QString> ignoredUsernames{
|
||||||
"videos",
|
"videos",
|
||||||
"settings",
|
"settings",
|
||||||
|
"directory",
|
||||||
|
"jobs",
|
||||||
|
"friends",
|
||||||
|
"inventory",
|
||||||
|
"payments",
|
||||||
|
"subscriptions",
|
||||||
|
"messages",
|
||||||
};
|
};
|
||||||
|
|
||||||
auto twitchMatch =
|
auto twitchMatch =
|
||||||
|
|||||||
Reference in New Issue
Block a user