mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +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()
|
||||
|| _new.iconThemeName != _current.iconThemeName
|
||||
|| _new.systemIcon.name() != _current.systemIcon.name()) {
|
||||
currentImageBack = {};
|
||||
|
||||
if (!_new.systemIcon.isNull()) {
|
||||
// We can't use QIcon::actualSize here
|
||||
// since it works incorrectly with svg icon themes
|
||||
|
@ -187,7 +189,9 @@ QIcon IconGraphic::trayIcon() {
|
|||
.toImage();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
if (currentImageBack.isNull()) {
|
||||
currentImageBack = Window::Logo();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue