Migrate /mods command to helix API (#4103)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -866,6 +866,17 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||
helixTimegateCommercial->setMinimumWidth(
|
||||
helixTimegateCommercial->minimumSizeHint().width());
|
||||
|
||||
auto *helixTimegateModerators =
|
||||
layout.addDropdown<std::underlying_type<HelixTimegateOverride>::type>(
|
||||
"Helix timegate /mods behaviour",
|
||||
{"Timegate", "Always use IRC", "Always use Helix"},
|
||||
s.helixTimegateModerators,
|
||||
helixTimegateGetValue, //
|
||||
helixTimegateSetValue, //
|
||||
false);
|
||||
helixTimegateModerators->setMinimumWidth(
|
||||
helixTimegateModerators->minimumSizeHint().width());
|
||||
|
||||
layout.addStretch();
|
||||
|
||||
// invisible element for width
|
||||
|
||||
Reference in New Issue
Block a user