example 'meshtastic': fast (offline) tile backup (not using zip); revisions

This commit is contained in:
pls.153 2023-08-26 09:41:02 +02:00
parent e8e0bca0e0
commit 49c0f4a80f
15 changed files with 132 additions and 49 deletions

View file

@ -145,14 +145,11 @@ QVariant QT::sqlQuery(const QVariant& vQuery, const QVariant& vValues) {
// etc
QVariant QT::dataPath() {
QVariant QT::dataPath(const QVariant& prefix) {
// for desktop
static QString path;
if (path.isEmpty()) {
path = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
path.truncate(path.lastIndexOf(QChar('/')));
path.append("/cl-meshtastic/data/");
}
QString path = QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
path.truncate(path.lastIndexOf(QChar('/')));
path.append(QStringLiteral("/cl-meshtastic/") + prefix.toString());
return path;
}