(#976) Use int for emotesTooltipPreview

This commit is contained in:
rexim 2019-06-12 02:05:18 +07:00
parent 244252f610
commit f362548e28
2 changed files with 7 additions and 2 deletions

View file

@ -192,7 +192,7 @@ public:
QStringSetting currentVersion = {"/misc/currentVersion", ""};
BoolSetting loadTwitchMessageHistoryOnConnect = {
"/misc/twitch/loadMessageHistoryOnConnect", true};
BoolSetting emotesTooltipPreview = {"/misc/emotesTooltipPreview", false};
IntSetting emotesTooltipPreview = {"/misc/emotesTooltipPreview", 0};
QStringSetting cachePath = {"/cache/path", ""};

View file

@ -270,7 +270,12 @@ 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.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.addSeperator();