mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 23:31:32 +02:00
fix macOS built-in updater
This commit is contained in:
@@ -126,6 +126,16 @@ QString defaultWalletDir() {
|
||||
#endif
|
||||
}
|
||||
|
||||
QString applicationPath() {
|
||||
QString applicationPath = qgetenv("APPIMAGE");
|
||||
if (!applicationPath.isEmpty()) {
|
||||
applicationPath = QFileInfo(applicationPath).absoluteDir().path();
|
||||
} else {
|
||||
applicationPath = QCoreApplication::applicationDirPath();
|
||||
}
|
||||
return applicationPath;
|
||||
}
|
||||
|
||||
bool validateJSON(const QByteArray &blob) {
|
||||
QJsonDocument doc = QJsonDocument::fromJson(blob);
|
||||
QString jsonString = doc.toJson(QJsonDocument::Indented);
|
||||
|
||||
Reference in New Issue
Block a user