修改字母排序bug

This commit is contained in:
gjq 2023-03-14 15:16:23 +08:00 committed by hewenfei
parent 22a7871f20
commit ee126378d2
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ void AppLetterSortPlugin::sortAppData(QList<DataEntity> &apps)
void AppLetterSortPlugin::addAppToLabel(const QString &labelName, QVector<DataEntity> &apps) void AppLetterSortPlugin::addAppToLabel(const QString &labelName, QVector<DataEntity> &apps)
{ {
LabelItem labelItem; LabelItem labelItem;
labelItem.setDisable(!apps.isEmpty()); labelItem.setDisable(apps.isEmpty());
labelItem.setIndex(m_labels.size()); labelItem.setIndex(m_labels.size());
labelItem.setId(labelName); labelItem.setId(labelName);
labelItem.setDisplayName(labelName); labelItem.setDisplayName(labelName);