Skip to content

Commit

Permalink
Fix device dependent pixmap creation
Browse files Browse the repository at this point in the history
Close #1506
  • Loading branch information
ManuelSchneid3r committed Jan 6, 2025
1 parent f27937d commit 0bd154b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/iconprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ QPixmap albert::pixmapFromUrl(const QString &url, const QSize &requestedSize)
else if (url.startsWith(xdg_icon_lookup_scheme))
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
// return pixmapFromFilePath(xdgIconLookup(url.mid(xdg_icon_lookup_scheme.size())), requestedSize);
return QIcon::fromTheme(url.mid(xdg_icon_lookup_scheme.size())).pixmap(requestedSize);
return QIcon::fromTheme(url.mid(xdg_icon_lookup_scheme.size())).pixmap(requestedSize, 1.);
#else
return {};
#endif
Expand Down

0 comments on commit 0bd154b

Please sign in to comment.