fix(menu): 修复权限设置逻辑判断错误

This commit is contained in:
hewenfei 2024-04-24 17:59:27 +08:00
parent 523f16bc10
commit 7ed8489e53
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ void AppContentMenu::addToDesktopAction(QObject *parent, const QString &appId, Q
QFile::ReadOther | QFile::ExeOther QFile::ReadOther | QFile::ExeOther
}; };
if (QFile::setPermissions(path, permissions)) { if (!QFile::setPermissions(path, permissions)) {
qWarning() << "set file permissions failed, file:" << path; qWarning() << "set file permissions failed, file:" << path;
} }
} }