Fix button being present in other pages
This commit is contained in:
parent
8b790a6dd9
commit
efc44c56a6
4 changed files with 20 additions and 9 deletions
|
@ -143,6 +143,11 @@ ModFolderPage::ModFolderPage(
|
|||
ui(new Ui::ModFolderPage)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
if(id == "mods") {
|
||||
auto act = new QAction(tr("Install Mods"), this);
|
||||
ui->actionsToolbar->insertActionBefore(ui->actionView_configs,act);
|
||||
connect(act, &QAction::triggered, this, &ModFolderPage::on_actionInstall_mods_triggered);
|
||||
}
|
||||
ui->actionsToolbar->insertSpacer(ui->actionView_configs);
|
||||
|
||||
m_inst = inst;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue