2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Added ability to configure quick action on double click.

This commit is contained in:
23rd
2022-04-11 11:34:56 +03:00
committed by John Preston
parent 572eb1f5f8
commit 4304071d18
16 changed files with 212 additions and 17 deletions

View File

@@ -179,6 +179,13 @@ QImage Reactions::resolveImageFor(
}
image.setDevicePixelRatio(factor);
};
if (size == ImageSize::Settings) {
if (set.settings.isNull() && set.icon) {
resolve(set.settings, st::reactionSettingsImage);
crl::async([icon = std::move(set.icon)]{});
}
return set.settings;
}
if (set.bottomInfo.isNull() && set.icon) {
resolve(set.bottomInfo, st::reactionInfoImage);
resolve(set.inlineList, st::reactionInlineImage);