Optimize pin to dock
This commit is contained in:
parent
5e00e727b6
commit
a528b3c538
1 changed files with 4 additions and 0 deletions
|
@ -100,9 +100,13 @@ void ApplicationModel::addItem(const QString &desktopFile)
|
|||
item->visibleName = desktopInfo.value("Name");
|
||||
item->exec = desktopInfo.value("Exec");
|
||||
item->desktopPath = desktopFile;
|
||||
item->isPinned = true;
|
||||
m_appItems << item;
|
||||
endInsertRows();
|
||||
|
||||
emit itemAdded();
|
||||
emit countChanged();
|
||||
|
||||
savePinAndUnPinList();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue