Moved the button up
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
f4e098f7f5
commit
6f6b6312a5
3 changed files with 5 additions and 4 deletions
|
@ -366,6 +366,7 @@ void ModDownloadDialog::setModMetadata(std::shared_ptr<Metadata::ModStruct> meta
|
||||||
selectPage(Flame::id());
|
selectPage(Flame::id());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
setWindowTitle(tr("Change %1 version").arg(meta->name));
|
||||||
m_container->hidePageList();
|
m_container->hidePageList();
|
||||||
m_buttons.hide();
|
m_buttons.hide();
|
||||||
auto page = selectedPage();
|
auto page = selectedPage();
|
||||||
|
|
|
@ -122,10 +122,10 @@ ModFolderPage::ModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel>
|
||||||
ui->actionsToolbar->addAction(ui->actionVisitItemPage);
|
ui->actionsToolbar->addAction(ui->actionVisitItemPage);
|
||||||
connect(ui->actionVisitItemPage, &QAction::triggered, this, &ModFolderPage::visitModPages);
|
connect(ui->actionVisitItemPage, &QAction::triggered, this, &ModFolderPage::visitModPages);
|
||||||
|
|
||||||
auto changeVersion = new QAction(tr("Reinstall"));
|
auto changeVersion = new QAction(tr("Change Version"));
|
||||||
changeVersion->setToolTip(tr("Reinstall mod"));
|
changeVersion->setToolTip(tr("Change mod version"));
|
||||||
changeVersion->setEnabled(false);
|
changeVersion->setEnabled(false);
|
||||||
ui->actionsToolbar->insertActionAfter(ui->actionVisitItemPage, changeVersion);
|
ui->actionsToolbar->insertActionAfter(ui->actionUpdateItem, changeVersion);
|
||||||
connect(changeVersion, &QAction::triggered, this, &ModFolderPage::changeModVersion);
|
connect(changeVersion, &QAction::triggered, this, &ModFolderPage::changeModVersion);
|
||||||
|
|
||||||
auto check_allow_update = [this] { return ui->treeView->selectionModel()->hasSelection() || !m_model->empty(); };
|
auto check_allow_update = [this] { return ui->treeView->selectionModel()->hasSelection() || !m_model->empty(); };
|
||||||
|
|
|
@ -133,7 +133,7 @@ void ModPage::updateVersionList()
|
||||||
}
|
}
|
||||||
QString flag;
|
QString flag;
|
||||||
if (installedIndex == -1 && installedVersion.isValid() && installedVersion == version.fileId) {
|
if (installedIndex == -1 && installedVersion.isValid() && installedVersion == version.fileId) {
|
||||||
flag = tr("[installed]");
|
flag = QString(" [%1]").arg(tr("installed", "Mod version select box"));
|
||||||
installedIndex = i;
|
installedIndex = i;
|
||||||
}
|
}
|
||||||
// Only add the version if it's valid or using the 'Any' filter, but never if the version is opted out
|
// Only add the version if it's valid or using the 'Any' filter, but never if the version is opted out
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue