Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion panels/dock/tray/traysortordermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ void TraySortOrderModel::registerToSection(const QString & surfaceId, const QStr
}

if (!section->contains(surfaceId)) {
section->prepend(surfaceId);
// 新项添加到末尾,保持已有项的位置顺序
// 这样可以确保应用重启后,托盘图标按上次保存的顺序显示
section->append(surfaceId);
}
}

Expand Down