!81 修复移动位置时更新信号应用信息残缺的问题

Merge pull request !81 from 白俊杰/0404upstream
This commit is contained in:
iaom 2023-04-04 09:02:32 +00:00 committed by Gitee
commit 7e670163fa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 4 deletions

View File

@ -968,7 +968,7 @@ bool AppDBManager::handleFavoritesStateUpdate(const QString &desktopFilePath, co
return res; return res;
} }
bool AppDBManager::handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap updatedInfo) bool AppDBManager::handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap &updatedInfo)
{ {
if (pos < 1) { if (pos < 1) {
qWarning() << "To be moved to a invalid favorites pos , I quit!!"; qWarning() << "To be moved to a invalid favorites pos , I quit!!";
@ -1165,7 +1165,7 @@ bool AppDBManager::handleTopStateUpdate(const QString &desktopFilePath, const ui
return res; return res;
} }
bool AppDBManager::handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap updatedInfo) bool AppDBManager::handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap &updatedInfo)
{ {
if (pos < 1) { if (pos < 1) {
qWarning() << "To be moved to a invalid top pos , I quit!!"; qWarning() << "To be moved to a invalid top pos , I quit!!";

View File

@ -104,8 +104,8 @@ private:
void initFileSystemWatcher(); void initFileSystemWatcher();
//处理置顶收藏移动位置 //处理置顶收藏移动位置
bool handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap updatedInfo); bool handleChangeFavoritesPos(const QString &desktopFilePath, const uint pos, const int previousPos, ApplicationInfoMap &updatedInfo);
bool handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap updatedInfo); bool handleChangeTopPos(const QString &desktopFilePath, uint pos, const int previousPos, ApplicationInfoMap &updatedInfo);
private: private:
static QMutex s_mutex; static QMutex s_mutex;