- fix: astyle path error when reformat.

This commit is contained in:
Roy Qu 2024-09-12 09:00:05 +08:00
parent c796208840
commit fdaf7d3a49
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Red Panda C++ Version 3.2
- fix: Scroll bar arrow size not correct in the dark themes.
- fix: Don't auto scroll to the caret after undo/redo.
- fix: "bits/stdc++" is not openned in readonly mode.
- fix: astyle path error when reformat.
Red Panda C++ Version 3.1

View File

@ -3882,7 +3882,7 @@ QString Settings::Environment::AStylePath() const
{
QString path = mAStylePath;
if (path.isEmpty())
path = includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+"astyle";
path = includeTrailingPathDelimiter(pSettings->dirs().appLibexecDir())+ASTYLE_PROGRAM;
else
path = replacePrefix(path, "%*APP_DIR*%", pSettings->dirs().appDir());
return path;