mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
Moved the button up
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -366,6 +366,7 @@ void ModDownloadDialog::setModMetadata(std::shared_ptr<Metadata::ModStruct> meta
|
||||
selectPage(Flame::id());
|
||||
break;
|
||||
}
|
||||
setWindowTitle(tr("Change %1 version").arg(meta->name));
|
||||
m_container->hidePageList();
|
||||
m_buttons.hide();
|
||||
auto page = selectedPage();
|
||||
|
@ -122,10 +122,10 @@ ModFolderPage::ModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel>
|
||||
ui->actionsToolbar->addAction(ui->actionVisitItemPage);
|
||||
connect(ui->actionVisitItemPage, &QAction::triggered, this, &ModFolderPage::visitModPages);
|
||||
|
||||
auto changeVersion = new QAction(tr("Reinstall"));
|
||||
changeVersion->setToolTip(tr("Reinstall mod"));
|
||||
auto changeVersion = new QAction(tr("Change Version"));
|
||||
changeVersion->setToolTip(tr("Change mod version"));
|
||||
changeVersion->setEnabled(false);
|
||||
ui->actionsToolbar->insertActionAfter(ui->actionVisitItemPage, changeVersion);
|
||||
ui->actionsToolbar->insertActionAfter(ui->actionUpdateItem, changeVersion);
|
||||
connect(changeVersion, &QAction::triggered, this, &ModFolderPage::changeModVersion);
|
||||
|
||||
auto check_allow_update = [this] { return ui->treeView->selectionModel()->hasSelection() || !m_model->empty(); };
|
||||
|
@ -133,7 +133,7 @@ void ModPage::updateVersionList()
|
||||
}
|
||||
QString flag;
|
||||
if (installedIndex == -1 && installedVersion.isValid() && installedVersion == version.fileId) {
|
||||
flag = tr("[installed]");
|
||||
flag = QString(" [%1]").arg(tr("installed", "Mod version select box"));
|
||||
installedIndex = i;
|
||||
}
|
||||
// Only add the version if it's valid or using the 'Any' filter, but never if the version is opted out
|
||||
|
Reference in New Issue
Block a user