mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Move icon name getter to cross-platform header
This commit is contained in:
@@ -125,9 +125,12 @@ QIcon CreateIcon(Main::Session *session, bool returnNullIfDefault) {
|
||||
|
||||
auto result = QIcon(Ui::PixmapFromImage(base::duplicate(Logo())));
|
||||
|
||||
#if defined Q_OS_UNIX && !defined Q_OS_MAC
|
||||
if constexpr (!Platform::IsLinux()) {
|
||||
return result;
|
||||
}
|
||||
|
||||
const auto iconFromTheme = QIcon::fromTheme(
|
||||
Platform::GetIconName(),
|
||||
base::IconName(),
|
||||
result);
|
||||
|
||||
result = QIcon();
|
||||
@@ -163,7 +166,6 @@ QIcon CreateIcon(Main::Session *session, bool returnNullIfDefault) {
|
||||
|
||||
result.addPixmap(iconPixmap);
|
||||
}
|
||||
#endif
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user