Fix emote & badge tooltips not showing up when thumbnails were hidden (#4509)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -416,16 +416,30 @@ void GeneralPage::initLayout(GeneralPageView &layout)
|
||||
});
|
||||
},
|
||||
false);
|
||||
layout.addDropdown<int>(
|
||||
"Show info on hover", {"Don't show", "Always show", "Hold shift"},
|
||||
layout.addDropdown<std::underlying_type<ThumbnailPreviewMode>::type>(
|
||||
"Show emote & badge thumbnail on hover",
|
||||
{
|
||||
"Don't show",
|
||||
"Always show",
|
||||
"Hold shift",
|
||||
},
|
||||
s.emotesTooltipPreview,
|
||||
[](int index) {
|
||||
return index;
|
||||
[](auto val) {
|
||||
switch (val)
|
||||
{
|
||||
case ThumbnailPreviewMode::DontShow:
|
||||
return "Don't show";
|
||||
case ThumbnailPreviewMode::AlwaysShow:
|
||||
return "Always show";
|
||||
case ThumbnailPreviewMode::ShowOnShift:
|
||||
return "Hold shift";
|
||||
}
|
||||
return "";
|
||||
},
|
||||
[](auto args) {
|
||||
return args.index;
|
||||
},
|
||||
false, "Show emote name, provider, and author on hover.");
|
||||
false);
|
||||
layout.addDropdown("Emoji style",
|
||||
{
|
||||
"Twitter",
|
||||
|
||||
Reference in New Issue
Block a user