mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Let QIcon::fromTheme check whether the tray icon is valid
QIcon::fromTheme overload with a fallback does a smarter check whether the icon is valid, use it to prevent getting a half-valid QIcon.
This commit is contained in:
parent
5f73e8b3bf
commit
3c2f8b65ce
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ QIcon IconGraphic::systemIcon() const {
|
|||
if (candidate.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
const auto icon = QIcon::fromTheme(candidate);
|
||||
const auto icon = QIcon::fromTheme(candidate, QIcon());
|
||||
if (icon.name() == candidate) {
|
||||
return icon;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue