(#976) Use int for emotesTooltipPreview
This commit is contained in:
@@ -192,7 +192,7 @@ public:
|
|||||||
QStringSetting currentVersion = {"/misc/currentVersion", ""};
|
QStringSetting currentVersion = {"/misc/currentVersion", ""};
|
||||||
BoolSetting loadTwitchMessageHistoryOnConnect = {
|
BoolSetting loadTwitchMessageHistoryOnConnect = {
|
||||||
"/misc/twitch/loadMessageHistoryOnConnect", true};
|
"/misc/twitch/loadMessageHistoryOnConnect", true};
|
||||||
BoolSetting emotesTooltipPreview = {"/misc/emotesTooltipPreview", false};
|
IntSetting emotesTooltipPreview = {"/misc/emotesTooltipPreview", 0};
|
||||||
|
|
||||||
QStringSetting cachePath = {"/cache/path", ""};
|
QStringSetting cachePath = {"/cache/path", ""};
|
||||||
|
|
||||||
|
|||||||
@@ -270,7 +270,12 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||||||
layout.addCheckbox("Double click links to open", s.linksDoubleClickOnly);
|
layout.addCheckbox("Double click links to open", s.linksDoubleClickOnly);
|
||||||
layout.addCheckbox("Unshorten links", s.unshortLinks);
|
layout.addCheckbox("Unshorten links", s.unshortLinks);
|
||||||
layout.addCheckbox("Show live indicator in tabs", s.showTabLive);
|
layout.addCheckbox("Show live indicator in tabs", s.showTabLive);
|
||||||
layout.addCheckbox("Show emote preview in tooltip on hover", s.emotesTooltipPreview);
|
layout.addDropdown<int>(
|
||||||
|
"Show emote preview in tooltip on hover",
|
||||||
|
{"Don't show", "Always show"},
|
||||||
|
s.emotesTooltipPreview,
|
||||||
|
[](int index) { return index; },
|
||||||
|
[](auto args) { return args.index; });
|
||||||
|
|
||||||
layout.addSpacing(16);
|
layout.addSpacing(16);
|
||||||
layout.addSeperator();
|
layout.addSeperator();
|
||||||
|
|||||||
Reference in New Issue
Block a user