fix(menu): 修复权限设置逻辑判断错误
This commit is contained in:
parent
523f16bc10
commit
7ed8489e53
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue