mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Ensure currentImageBack isn't null
This commit is contained in:
parent
3c2f8b65ce
commit
7d0beafce0
1 changed files with 5 additions and 1 deletions
|
@ -161,6 +161,8 @@ QIcon IconGraphic::trayIcon() {
|
||||||
if (currentImageBack.isNull()
|
if (currentImageBack.isNull()
|
||||||
|| _new.iconThemeName != _current.iconThemeName
|
|| _new.iconThemeName != _current.iconThemeName
|
||||||
|| _new.systemIcon.name() != _current.systemIcon.name()) {
|
|| _new.systemIcon.name() != _current.systemIcon.name()) {
|
||||||
|
currentImageBack = {};
|
||||||
|
|
||||||
if (!_new.systemIcon.isNull()) {
|
if (!_new.systemIcon.isNull()) {
|
||||||
// We can't use QIcon::actualSize here
|
// We can't use QIcon::actualSize here
|
||||||
// since it works incorrectly with svg icon themes
|
// since it works incorrectly with svg icon themes
|
||||||
|
@ -187,7 +189,9 @@ QIcon IconGraphic::trayIcon() {
|
||||||
.toImage();
|
.toImage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (currentImageBack.isNull()) {
|
||||||
currentImageBack = Window::Logo();
|
currentImageBack = Window::Logo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue