refactor: use theme icon for tray on windows

This commit is contained in:
sithlord48
2025-10-23 11:24:27 -04:00
committed by Nick Bolton
parent 8226c4162b
commit b5c188abbc

View File

@ -768,7 +768,7 @@ void MainWindow::setTrayIcon()
// Using a theme icon that is packed in exe renders an invisible icon
// Instead use the resource path of the packed icon
const bool symbolicIcon = Settings::value(Settings::Gui::SymbolicTrayIcon).toBool();
#ifndef Q_OS_MAC
#if defined(Q_OS_UNIX) && !defined(Q_OS_APPLE)
QString iconString = QStringLiteral(":/icons/deskflow-%1/apps/64/deskflow").arg(iconMode());
if (symbolicIcon)
iconString.append(QStringLiteral("-symbolic"));