fixed typos

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-07-02 16:45:15 +03:00
parent 6c4cf085e0
commit aad5ca5474
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318
3 changed files with 7 additions and 6 deletions

View File

@ -105,7 +105,7 @@ void FlamePackExportTask::collectFiles()
void FlamePackExportTask::collectHashes() void FlamePackExportTask::collectHashes()
{ {
setAbortable(true); setAbortable(true);
setStatus(tr("Find file hashes...")); setStatus(tr("Finding file hashes..."));
setProgress(1, 5); setProgress(1, 5);
auto allMods = mcInstance->loaderModList()->allMods(); auto allMods = mcInstance->loaderModList()->allMods();
ConcurrentTask::Ptr hashing_task(new ConcurrentTask(this, "MakeHashesTask", 10)); ConcurrentTask::Ptr hashing_task(new ConcurrentTask(this, "MakeHashesTask", 10));
@ -186,7 +186,7 @@ void FlamePackExportTask::makeApiRequest()
return; return;
} }
setStatus(tr("Find versions for hashes...")); setStatus(tr("Finding versions for hashes..."));
setProgress(2, 5); setProgress(2, 5);
auto response = std::make_shared<QByteArray>(); auto response = std::make_shared<QByteArray>();
@ -255,10 +255,10 @@ void FlamePackExportTask::makeApiRequest()
void FlamePackExportTask::getProjectsInfo() void FlamePackExportTask::getProjectsInfo()
{ {
setStatus(tr("Find project info from CurseForge...")); setStatus(tr("Finding project info from CurseForge..."));
setProgress(3, 5); setProgress(3, 5);
QList<QString> addonIds; QStringList addonIds;
for (auto resolved : resolvedFiles) { for (const auto& resolved : resolvedFiles) {
if (resolved.slug.isEmpty()) { if (resolved.slug.isEmpty()) {
addonIds << QString::number(resolved.addonId); addonIds << QString::number(resolved.addonId);
} }

View File

@ -41,6 +41,7 @@ ExportPackDialog::ExportPackDialog(InstancePtr instance, QWidget* parent, ModPla
ui->name->setText(instance->name()); ui->name->setText(instance->name());
if (m_provider == ModPlatform::ResourceProvider::MODRINTH) { if (m_provider == ModPlatform::ResourceProvider::MODRINTH) {
ui->summary->setText(instance->notes().split(QRegularExpression("\\r?\\n"))[0]); ui->summary->setText(instance->notes().split(QRegularExpression("\\r?\\n"))[0]);
setWindowTitle("Export Modrinth Pack");
} else { } else {
setWindowTitle("Export CurseForge Pack"); setWindowTitle("Export CurseForge Pack");
ui->version->setText(""); ui->version->setText("");

View File

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Export Modrinth Pack</string> <string>Export Pack</string>
</property> </property>
<property name="sizeGripEnabled"> <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>