Skip to content

Commit

Permalink
fix: the app add a blank proc while some apps closed.
Browse files Browse the repository at this point in the history
the app add a blank proc while some apps closed.

Log: the dsm cant delete the closed proc on ui
Bug: https://pms.uniontech.com/bug-view-226579.html
  • Loading branch information
lJxDabab committed Feb 27, 2024
1 parent 8aedf80 commit a95e8c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepin-system-monitor-main/process/process_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ void ProcessSet::scanProcess()
m_prePid.removeAt(pid); //remove disappear process pid
if(m_simpleSet.contains(pid))
m_simpleSet.remove(pid);
//for each pid,only one process reflected.So "removeOne()"func replied.
if(m_pidMyApps.contains(pid))
m_pidMyApps.removeAt(pid);
m_pidMyApps.removeOne(pid);
}
}

Expand Down

0 comments on commit a95e8c0

Please sign in to comment.