Migrate /commercial command to the Helix API (#4094)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
xel86
2022-11-05 05:43:31 -04:00
committed by GitHub
parent f0ad606d7a
commit f00f766eeb
7 changed files with 302 additions and 0 deletions
+11
View File
@@ -855,6 +855,17 @@ void GeneralPage::initLayout(GeneralPageView &layout)
helixTimegateVIPs->setMinimumWidth(
helixTimegateVIPs->minimumSizeHint().width());
auto *helixTimegateCommercial =
layout.addDropdown<std::underlying_type<HelixTimegateOverride>::type>(
"Helix timegate /commercial behaviour",
{"Timegate", "Always use IRC", "Always use Helix"},
s.helixTimegateCommercial,
helixTimegateGetValue, //
helixTimegateSetValue, //
false);
helixTimegateCommercial->setMinimumWidth(
helixTimegateCommercial->minimumSizeHint().width());
layout.addStretch();
// invisible element for width