refactor: make sure flatpak and snap use packed icons, they can not detect panel color
This commit is contained in:
parent
f4ca17ba3d
commit
066e63cc86
1 changed files with 4 additions and 0 deletions
|
|
@ -755,6 +755,10 @@ void MainWindow::setTrayIcon()
|
||||||
{
|
{
|
||||||
QString iconString = kRevFqdnName;
|
QString iconString = kRevFqdnName;
|
||||||
|
|
||||||
|
if (deskflow::platform::isSandboxed()) {
|
||||||
|
iconString = QStringLiteral(":/icons/%1-%2/apps/64/%3").arg(kAppId, iconMode(), kRevFqdnName);
|
||||||
|
}
|
||||||
|
|
||||||
if (!Settings::value(Settings::Gui::SymbolicTrayIcon).toBool()) {
|
if (!Settings::value(Settings::Gui::SymbolicTrayIcon).toBool()) {
|
||||||
m_trayIcon->setIcon(QIcon::fromTheme(iconString));
|
m_trayIcon->setIcon(QIcon::fromTheme(iconString));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue