修改默认收藏应用顺序

This commit is contained in:
hewenfei 2023-06-06 10:26:22 +08:00
parent 28b782624a
commit 373cd3ce44
1 changed files with 6 additions and 1 deletions

View File

@ -157,8 +157,13 @@ void GlobalSetting::initGlobalSettings()
//=
settings.beginGroup("Default Favorite Apps");
QMap<int, QString> apps;
for (const auto &key : settings.allKeys()) {
m_defaultFavoriteApps.append(settings.value(key).toString());
apps.insert(key.toInt(), settings.value(key).toString());
}
for (const auto &app : apps) {
m_defaultFavoriteApps.append(app);
}
settings.endGroup();
}