mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix build on latest Fedora (#4518)
gcc (GCC) 13.0.1 20230401 (Red Hat 13.0.1-0) Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
5c08e996c6
commit
7a286480d6
2 changed files with 10 additions and 7 deletions
|
@ -391,7 +391,8 @@ void Notebook::setShowTabs(bool value)
|
|||
if (!value && getSettings()->informOnTabVisibilityToggle.getValue())
|
||||
{
|
||||
auto unhideSeq = getApp()->hotkeys->getDisplaySequence(
|
||||
HotkeyCategory::Window, "setTabVisibility", {{}});
|
||||
HotkeyCategory::Window, "setTabVisibility",
|
||||
{std::vector<QString>()});
|
||||
if (unhideSeq.isEmpty())
|
||||
{
|
||||
unhideSeq = getApp()->hotkeys->getDisplaySequence(
|
||||
|
@ -436,7 +437,7 @@ void Notebook::setShowTabs(bool value)
|
|||
void Notebook::updateTabVisibilityMenuAction()
|
||||
{
|
||||
auto toggleSeq = getApp()->hotkeys->getDisplaySequence(
|
||||
HotkeyCategory::Window, "setTabVisibility", {{}});
|
||||
HotkeyCategory::Window, "setTabVisibility", {std::vector<QString>()});
|
||||
if (toggleSeq.isEmpty())
|
||||
{
|
||||
toggleSeq = getApp()->hotkeys->getDisplaySequence(
|
||||
|
|
|
@ -451,8 +451,8 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
|||
|
||||
if (twitchChannel)
|
||||
{
|
||||
auto bothSeq =
|
||||
h->getDisplaySequence(HotkeyCategory::Split, "reloadEmotes", {{}});
|
||||
auto bothSeq = h->getDisplaySequence(
|
||||
HotkeyCategory::Split, "reloadEmotes", {std::vector<QString>()});
|
||||
auto channelSeq = h->getDisplaySequence(HotkeyCategory::Split,
|
||||
"reloadEmotes", {{"channel"}});
|
||||
auto subSeq = h->getDisplaySequence(HotkeyCategory::Split,
|
||||
|
@ -484,8 +484,9 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
|||
"setModerationMode", {{"toggle"}});
|
||||
if (modModeSeq.isEmpty())
|
||||
{
|
||||
modModeSeq = h->getDisplaySequence(HotkeyCategory::Split,
|
||||
"setModerationMode", {{}});
|
||||
modModeSeq =
|
||||
h->getDisplaySequence(HotkeyCategory::Split, "setModerationMode",
|
||||
{std::vector<QString>()});
|
||||
// this makes a full std::optional<> with an empty vector inside
|
||||
}
|
||||
moreMenu->addAction(
|
||||
|
@ -529,7 +530,8 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
|||
if (notifySeq.isEmpty())
|
||||
{
|
||||
notifySeq = h->getDisplaySequence(HotkeyCategory::Split,
|
||||
"setChannelNotification", {{}});
|
||||
"setChannelNotification",
|
||||
{std::vector<QString>()});
|
||||
// this makes a full std::optional<> with an empty vector inside
|
||||
}
|
||||
action->setShortcut(notifySeq);
|
||||
|
|
Loading…
Reference in a new issue