Minor: Add missing hotkey Action for Open Player in Browser. (#4756)

This commit is contained in:
Mm2PL 2023-08-07 15:41:32 +02:00 committed by GitHub
parent e0417bc87e
commit 59160c5d04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 1 deletions

View file

@ -25,6 +25,7 @@
- Minor: Allow for customizing the behavior of `Right Click`ing of usernames. (#4622, #4751) - Minor: Allow for customizing the behavior of `Right Click`ing of usernames. (#4622, #4751)
- Minor: Added support for opening incognito links in firefox-esr and chromium. (#4745) - Minor: Added support for opening incognito links in firefox-esr and chromium. (#4745)
- Minor: Added support for opening incognito links under Linux/BSD using XDG. (#4745) - Minor: Added support for opening incognito links under Linux/BSD using XDG. (#4745)
- Minor: Add missing hotkey Action for Open Player in Browser. (#4756)
- Bugfix: Increased amount of blocked users loaded from 100 to 1,000. (#4721) - Bugfix: Increased amount of blocked users loaded from 100 to 1,000. (#4721)
- Bugfix: Fixed generation of crashdumps by the browser-extension process when the browser was closed. (#4667) - Bugfix: Fixed generation of crashdumps by the browser-extension process when the browser was closed. (#4667)
- Bugfix: Fix spacing issue with mentions inside RTL text. (#4677) - Bugfix: Fix spacing issue with mentions inside RTL text. (#4677)

View file

@ -110,6 +110,8 @@ inline const std::map<HotkeyCategory, ActionDefinitionMap> actionNames{
"Which direction to look for a split to focus?", "Which direction to look for a split to focus?",
}}, }},
{"openInBrowser", ActionDefinition{"Open channel in browser"}}, {"openInBrowser", ActionDefinition{"Open channel in browser"}},
{"openPlayerInBrowser",
ActionDefinition{"Open stream in browser player"}},
{"openInCustomPlayer", {"openInCustomPlayer",
ActionDefinition{"Open stream in custom player"}}, ActionDefinition{"Open stream in custom player"}},
{"openInStreamlink", ActionDefinition{"Open stream in streamlink"}}, {"openInStreamlink", ActionDefinition{"Open stream in streamlink"}},

View file

@ -552,6 +552,11 @@ void Split::addShortcuts()
this->openWithCustomScheme(); this->openWithCustomScheme();
return ""; return "";
}}, }},
{"openPlayerInBrowser",
[this](std::vector<QString>) -> QString {
this->openBrowserPlayer();
return "";
}},
{"openModView", {"openModView",
[this](std::vector<QString>) -> QString { [this](std::vector<QString>) -> QString {
this->openModViewInBrowser(); this->openModViewInBrowser();

View file

@ -399,7 +399,9 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
h->getDisplaySequence(HotkeyCategory::Split, "openInBrowser")); h->getDisplaySequence(HotkeyCategory::Split, "openInBrowser"));
#ifndef USEWEBENGINE #ifndef USEWEBENGINE
menu->addAction(OPEN_PLAYER_IN_BROWSER, this->split_, menu->addAction(OPEN_PLAYER_IN_BROWSER, this->split_,
&Split::openBrowserPlayer); &Split::openBrowserPlayer,
h->getDisplaySequence(HotkeyCategory::Split,
"openPlayerInBrowser"));
#endif #endif
menu->addAction( menu->addAction(
OPEN_IN_STREAMLINK, this->split_, &Split::openInStreamlink, OPEN_IN_STREAMLINK, this->split_, &Split::openInStreamlink,