daemon: link to custom icons for better fallback icon in notifications

This commit is contained in:
Piyush Aggarwal 2021-06-13 05:30:15 +05:30
parent 86c12cd8e8
commit ee6e427137
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,9 @@ ecm_qt_declare_logging_category(
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (daemon)")
add_executable(kdeconnectd kdeconnectd.cpp ${debug_file_SRCS})
qt5_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
add_executable(kdeconnectd kdeconnectd.cpp ${kdeconnect_custom_icons_SRCS} ${debug_file_SRCS})
target_link_libraries(kdeconnectd
kdeconnectcore kdeconnectversion
KF5::KIOWidgets

View file

@ -38,7 +38,7 @@ public:
: Daemon(parent)
, m_nam(nullptr)
{
qApp->setWindowIcon(QIcon::fromTheme(QStringLiteral("kdeconnect")));
qApp->setWindowIcon(QIcon(QStringLiteral(":/icons/kdeconnect/kdeconnect.svg")));
}
void askPairingConfirmation(Device* device) override