Working solver

This commit is contained in:
2024-09-20 14:34:21 +02:00
parent c8898387fe
commit dccb2e88da
9 changed files with 506 additions and 50 deletions
+4 -7
View File
@@ -2,8 +2,7 @@
#include <QNetworkReply>
#include <QDebug>
#include <QRegularExpression>
#include <QStandardPaths>
#include <QDir>
#include "solver.h"
// filename arcseconds range
// index-4119.fits 14002000
@@ -415,15 +414,13 @@ HttpDownloader::HttpDownloader(QObject *parent) : QObject(parent)
,_manager(new QNetworkAccessManager(this))
{
connect(_manager, &QNetworkAccessManager::finished, this, &HttpDownloader::finished);
QDir dir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
if(!dir.exists("astrometry"))
QDir dir(Solver::getTenmonIndexPath());
if(!dir.exists())
{
if(dir.mkpath("astrometry"))
if(dir.mkpath("."))
qDebug() << "Failed to create astrometry directory";
}
dir.cd("astrometry");
_indexPath = dir.absolutePath();
}