summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/logic/meta/BaseEntity.cpp2
-rw-r--r--api/logic/translations/TranslationsModel.cpp5
-rw-r--r--api/logic/translations/TranslationsModel.h2
-rw-r--r--application/MainWindow.cpp3
4 files changed, 7 insertions, 5 deletions
diff --git a/api/logic/meta/BaseEntity.cpp b/api/logic/meta/BaseEntity.cpp
index 33c349a1..ce0be859 100644
--- a/api/logic/meta/BaseEntity.cpp
+++ b/api/logic/meta/BaseEntity.cpp
@@ -74,7 +74,7 @@ Meta::BaseEntity::~BaseEntity()
QUrl Meta::BaseEntity::url() const
{
- return QUrl("https://v1.meta.multimc.org").resolved(localFilename());
+ return QUrl("https://meta.multimc.org/v1/").resolved(localFilename());
}
bool Meta::BaseEntity::loadLocalFile()
diff --git a/api/logic/translations/TranslationsModel.cpp b/api/logic/translations/TranslationsModel.cpp
index 58ff4384..0d9eccbf 100644
--- a/api/logic/translations/TranslationsModel.cpp
+++ b/api/logic/translations/TranslationsModel.cpp
@@ -133,6 +133,7 @@ TranslationsModel::TranslationsModel(QString path, QObject* parent): QAbstractLi
{
d.reset(new Private);
d->m_dir.setPath(path);
+ FS::ensureFolderPathExists(path);
reloadLocalFiles();
d->watcher = new QFileSystemWatcher(this);
@@ -151,7 +152,7 @@ void TranslationsModel::translationDirChanged(const QString& path)
selectLanguage(selectedLanguage());
}
-void TranslationsModel::indexRecieved()
+void TranslationsModel::indexReceived()
{
qDebug() << "Got translations index!";
d->m_index_job.reset();
@@ -558,7 +559,7 @@ void TranslationsModel::downloadIndex()
d->m_index_task = Net::Download::makeCached(QUrl("https://files.multimc.org/translations/index_v2.json"), entry);
d->m_index_job->addNetAction(d->m_index_task);
connect(d->m_index_job.get(), &NetJob::failed, this, &TranslationsModel::indexFailed);
- connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexRecieved);
+ connect(d->m_index_job.get(), &NetJob::succeeded, this, &TranslationsModel::indexReceived);
d->m_index_job->start();
}
diff --git a/api/logic/translations/TranslationsModel.h b/api/logic/translations/TranslationsModel.h
index fa0ae5f6..a0327fcd 100644
--- a/api/logic/translations/TranslationsModel.h
+++ b/api/logic/translations/TranslationsModel.h
@@ -52,7 +52,7 @@ private:
TranslationsModel &operator=(const TranslationsModel &) = delete;
private slots:
- void indexRecieved();
+ void indexReceived();
void indexFailed(QString reason);
void dlFailed(QString reason);
void dlGood();
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 235d458c..3c957995 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1634,7 +1634,8 @@ void MainWindow::on_actionDeleteInstance_triggered()
tr("CAREFUL!"),
tr("About to delete: %1\nThis is permanent and will completely delete the instance.\n\nAre you sure?").arg(m_selectedInstance->name()),
QMessageBox::Warning,
- QMessageBox::Yes | QMessageBox::No
+ QMessageBox::Yes | QMessageBox::No,
+ QMessageBox::No
)->exec();
if (response == QMessageBox::Yes)
{