Optimize pin to dock

pull/9/head
reionwong 5 years ago
parent 5e00e727b6
commit a528b3c538

@ -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…
Cancel
Save