mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Simplify Image, remove ImageSource.
This commit is contained in:
@@ -709,7 +709,6 @@ void AppendEmojiPacks(std::vector<PickerScrubberItem> &to) {
|
||||
.scaled(kCircleDiameter, kCircleDiameter, Qt::KeepAspectRatio);
|
||||
_imageView.image = [qt_mac_create_nsimage(
|
||||
_image->pixSingle(
|
||||
fileOrigin,
|
||||
size.width(),
|
||||
size.height(),
|
||||
kCircleDiameter,
|
||||
|
@@ -482,7 +482,7 @@ bool Manager::Private::showNotification(
|
||||
const auto key = hideNameAndPhoto
|
||||
? InMemoryKey()
|
||||
: peer->userpicUniqueKey(view);
|
||||
const auto userpicPath = _cachedUserpics.get(key, peer);
|
||||
const auto userpicPath = _cachedUserpics.get(key, peer, view);
|
||||
const auto userpicPathWide = QDir::toNativeSeparators(userpicPath).toStdWString();
|
||||
|
||||
hr = SetImageSrc(userpicPathWide.c_str(), toastXml.Get());
|
||||
|
Reference in New Issue
Block a user