修改默认收藏应用顺序
This commit is contained in:
parent
28b782624a
commit
373cd3ce44
|
@ -157,8 +157,13 @@ void GlobalSetting::initGlobalSettings()
|
||||||
|
|
||||||
//=
|
//=
|
||||||
settings.beginGroup("Default Favorite Apps");
|
settings.beginGroup("Default Favorite Apps");
|
||||||
|
QMap<int, QString> apps;
|
||||||
for (const auto &key : settings.allKeys()) {
|
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();
|
settings.endGroup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue