Skip to content

Commit

Permalink
Copy words.txt file in QML version
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Nov 10, 2020
1 parent b5bc599 commit 3cd51ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui-qml/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ int main(int argc, char *argv[])
copyRecursively(from, to);
}
}
const QStringList filesToCopy { "words.txt" };
for (const QString &tgt : filesToCopy) {
const QString from = savePath(tgt, true, false);
const QString to = savePath(tgt, true, true);
if (!QFile::exists(to) && QFile::exists(from)) {
QFile::copy(from, to);
}
}

const QUrl url(QStringLiteral("qrc:/main-screen.qml"));

Expand Down

0 comments on commit 3cd51ad

Please sign in to comment.