Clarify "Custom stream player" functionality (#1889)
* Clarify "Custom stream player" functionality * Remove idiotic idiot proofing
This commit is contained in:
@@ -575,11 +575,12 @@ void Split::openInStreamlink()
|
||||
|
||||
void Split::openWithCustomScheme()
|
||||
{
|
||||
const auto scheme = getSettings()->customURIScheme.getValue();
|
||||
QString scheme = getSettings()->customURIScheme.getValue();
|
||||
if (scheme.isEmpty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const auto channel = this->getChannel().get();
|
||||
|
||||
if (const auto twitchChannel = dynamic_cast<TwitchChannel *>(channel))
|
||||
|
||||
@@ -311,7 +311,7 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||
|
||||
if (!getSettings()->customURIScheme.getValue().isEmpty())
|
||||
{
|
||||
menu->addAction("Open with URI Scheme", this->split_,
|
||||
menu->addAction("Open in custom player", this->split_,
|
||||
&Split::openWithCustomScheme);
|
||||
}
|
||||
menu->addSeparator();
|
||||
|
||||
Reference in New Issue
Block a user