mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-04 11:00:46 +00: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user