Optimize pin to dock

This commit is contained in:
reionwong 2021-08-29 21:33:19 +08:00
parent 5e00e727b6
commit a528b3c538

View file

@ -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();
}