mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-22 09:07:05 +02:00
Use operator-> for tray icon biggest size
This commit is contained in:
parent
ea9813825d
commit
f1e0b36f61
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ QIcon TrayIconGen(int counter, bool muted) {
|
|||
std::less<>(),
|
||||
&QSize::width);
|
||||
|
||||
if ((*biggestSize).width() > firstAttemptSize.width()) {
|
||||
if (biggestSize->width() > firstAttemptSize.width()) {
|
||||
currentImageBack = systemIcon
|
||||
.pixmap(*biggestSize)
|
||||
.toImage();
|
||||
|
@ -388,7 +388,7 @@ std::unique_ptr<QTemporaryFile> TrayIconFile(
|
|||
std::less<>(),
|
||||
&QSize::width);
|
||||
|
||||
if ((*biggestSize).width() > firstAttemptSize.width()) {
|
||||
if (biggestSize->width() > firstAttemptSize.width()) {
|
||||
scalePixmap(icon.pixmap(*biggestSize)).save(ret.get());
|
||||
} else {
|
||||
scalePixmap(firstAttempt).save(ret.get());
|
||||
|
|
Loading…
Add table
Reference in a new issue