This commit is contained in:
Rasmus Karlsson 2019-07-28 13:20:22 +02:00
parent 954b1b138a
commit 3679125e2f
3 changed files with 10 additions and 9 deletions

View file

@ -350,7 +350,8 @@ void Window::addMenuBar()
mainMenu->addMenu(menu);
QAction *prefs = menu->addAction(QString());
prefs->setMenuRole(QAction::PreferencesRole);
connect(prefs, &QAction::triggered, this, [] { SettingsDialog::showDialog(); });
connect(prefs, &QAction::triggered, this,
[] { SettingsDialog::showDialog(); });
}
#define UGLYMACROHACK1(s) #s

View file

@ -278,11 +278,11 @@ void GeneralPage::initLayout(SettingsLayout &layout)
layout.addCheckbox("Double click links to open", s.linksDoubleClickOnly);
layout.addCheckbox("Unshorten links", s.unshortLinks);
layout.addCheckbox("Show live indicator in tabs", s.showTabLive);
layout.addDropdown<int>("Show emote preview in tooltip on hover",
{"Don't show", "Always show", "Hold shift"},
s.emotesTooltipPreview,
[](int index) { return index; },
[](auto args) { return args.index; }, false);
layout.addDropdown<int>(
"Show emote preview in tooltip on hover",
{"Don't show", "Always show", "Hold shift"}, s.emotesTooltipPreview,
[](int index) { return index; }, [](auto args) { return args.index; },
false);
layout.addSpacing(16);
layout.addSeperator();

View file

@ -331,9 +331,9 @@ void LookPage::addBadgesTab(LayoutCreator<QVBoxLayout> layout)
layout.append(this->createCheckBox(
("Show authority badges (staff, admin, turbo, etc)"),
getSettings()->showBadgesGlobalAuthority));
layout.append(
this->createCheckBox(("Show channel badges (broadcaster, moderator, VIP)"),
getSettings()->showBadgesChannelAuthority));
layout.append(this->createCheckBox(
("Show channel badges (broadcaster, moderator, VIP)"),
getSettings()->showBadgesChannelAuthority));
layout.append(this->createCheckBox(("Show subscriber badges "),
getSettings()->showBadgesSubscription));
layout.append(