on xenial help sign in
sset the item to "running" in all cases when it appears
commitc31e1390b34f366e765f7db03ed9eeec55928ed6 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 7 Jul 2015, 18:07 (11 years ago) parentaf9bb15
1 file changed+2−3
plugins/Unity/Launcher/launchermodel.cpp+2−3
plugins/Unity/Launcher/launchermodel.cpp+2−3
@@ -492,10 +492,9 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
492492 LauncherItem *item = m_list.at(itemIndex);
493493 if (!item->recent()) {
494494 item->setRecent(true);
495− item->setRunning(true);
496− m_asAdapter->syncItems(m_list);
497495 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRecent});
498496 }
497+ item->setRunning(true);
499498 // TODO Shall we paint some running/recent app highlight? If yes, do it here.
500499 } else {
501500 LauncherItem *item = new LauncherItem(app->appId(), app->name(), app->icon().toString(), this);
@@ -506,8 +505,8 @@ void LauncherModel::applicationAdded(const QModelIndex &parent, int row)
506505 beginInsertRows(QModelIndex(), m_list.count(), m_list.count());
507506 m_list.append(item);
508507 endInsertRows();
509− m_asAdapter->syncItems(m_list);
510508 }
509+ m_asAdapter->syncItems(m_list);
511510 Q_EMIT dataChanged(index(itemIndex), index(itemIndex), {RoleRunning});
512511}
513512