Skip to content

Commit

Permalink
Fixed bug where no new notification label was Shadowed when dialog po…
Browse files Browse the repository at this point in the history
…pup was present(修复通知中心label有阴影的bug), Modifying code specifications(修改代码规范)
  • Loading branch information
liushanwen1997 committed Jan 6, 2021
1 parent 37a872d commit 6b88791
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 131 deletions.
6 changes: 2 additions & 4 deletions src/plugins/ukui-sidebar-notification/monitorthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,12 @@ void MonitorThread::extractData(QString strOutput)

//app名的获取
int nIndex = strOutputTmp.indexOf("\"");
if(-1 == nIndex)
{
if (-1 == nIndex) {
return;
}
strOutputTmp = strOutputTmp.mid(nIndex + 1);
nIndex = strOutputTmp.indexOf("\"");
if(-1 == nIndex)
{
if (-1 == nIndex) {
return;
}
QString strAppName = strOutputTmp.mid(0, nIndex);
Expand Down
Loading

0 comments on commit 6b88791

Please sign in to comment.