Skip to content

Commit

Permalink
fix(launcher): onCheckDesktopFile应该使用正确map去查找对应的Item
Browse files Browse the repository at this point in the history
应该使用m_desktopAndItemMap而不是itemsMap去获取对应的Item

Log: 修复卸载第三方应用后任务栏依然显示应用的问题
Influence: 任务栏应用正常显示
  • Loading branch information
dengbo11 committed Jun 25, 2023
1 parent bc863ef commit 992dcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/launcher/launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ void Launcher::onCheckDesktopFile(const QString &filePath, int type)
} else {
if (m_desktopAndItemMap.find(filePath) != m_desktopAndItemMap.end()) {
// remove item
const Item &item = itemsMap[filePath];
const Item &item = m_desktopAndItemMap[filePath];
removeDesktop(filePath);

emitItemChanged(&item, appStatusDeleted);
Expand Down

0 comments on commit 992dcf1

Please sign in to comment.