Skip to content

Commit

Permalink
Correct the non-pre-release path to the build path
Browse files Browse the repository at this point in the history
  • Loading branch information
mrQzs committed Jun 6, 2021
1 parent e1ac8a2 commit 98333e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/LVGLProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,11 +371,11 @@ bool LVGLProject::exportCode(const QString &path) const {
file.close();

// output font file
QString fontdir = QDir::currentPath() + "/fonts/";
QString fontdir = QDir::currentPath() + "/../../../lvgl/lvgl/src/lv_font/";
QStringList fontfilelist;
auto &fontname = LVGLHelper::getInstance().getSaveFontName();
for (auto s : fontname) fontfilelist.push_back(s + ".c");
for (auto x : fontfilelist) {
for (const auto &s : fontname) fontfilelist.push_back(s + ".c");
for (const auto &x : fontfilelist) {
QString filepath = fontdir + x;
QString copyfilepath;
if (exportmethod == 1)
Expand Down Expand Up @@ -533,7 +533,7 @@ bool LVGLProject::exportCodePlus(const QString &path) const {

bool LVGLProject::exportTimeFuncs(const QString &path) const {
QString timefuncsdir = QDir::currentPath();
QString filepath = timefuncsdir + "/exfile/timefuncs";
QString filepath = timefuncsdir + "/timefuncs";
QString copyfilepath = path + "/timefuncs";

QFile file(filepath + ".h");
Expand Down

0 comments on commit 98333e1

Please sign in to comment.