Skip to content

Commit

Permalink
fix: tray icon incorrect
Browse files Browse the repository at this point in the history
the QIcon::fromTheme("", fallback) return fallback
if QIcon.availableSizes() is empty().
- DDciIconEngine not impl availableSizes()
We temporarily use icon.source, wait dtk fix it.

Log: fix tray icon.
Bug: https://pms.uniontech.com/bug-view-290021.html
  • Loading branch information
rb-union authored and deepin-bot[bot] committed Dec 9, 2024
1 parent 5c31e4f commit 4c72077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/music-player/mainwindow/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ ApplicationWindow {
SystemTrayIcon{
id: systemTray
visible: true
// TODO: temporar setting, wait dtk fix IconEngine. icon.name is fallback
icon.name: "deepin-music"
icon.source: "qrc:/dsg/img/deepin-music.svg"
tooltip: qsTr("Music")

onActivated: {
Expand Down

0 comments on commit 4c72077

Please sign in to comment.