2
0
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:
Ilya Fedin
2022-09-19 06:58:27 +04:00
committed by John Preston
parent 5132fd5010
commit d9318c9935
7 changed files with 37 additions and 31 deletions

View File

@@ -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;
}