mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-09 11:04:39 +02:00
Fix Export List placement
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
f57ca1e79e
commit
49044e23de
@ -323,6 +323,8 @@ void ExternalResourcesPage::updateActions()
|
|||||||
ui->actionRemoveItem->setEnabled(hasSelection);
|
ui->actionRemoveItem->setEnabled(hasSelection);
|
||||||
ui->actionEnableItem->setEnabled(hasSelection);
|
ui->actionEnableItem->setEnabled(hasSelection);
|
||||||
ui->actionDisableItem->setEnabled(hasSelection);
|
ui->actionDisableItem->setEnabled(hasSelection);
|
||||||
|
|
||||||
|
ui->actionExportMetadata->setEnabled(!m_model->empty());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExternalResourcesPage::updateFrame(const QModelIndex& current, [[maybe_unused]] const QModelIndex& previous)
|
void ExternalResourcesPage::updateFrame(const QModelIndex& current, [[maybe_unused]] const QModelIndex& previous)
|
||||||
|
@ -190,7 +190,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionExportMetadata">
|
<action name="actionExportMetadata">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>true</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Export List</string>
|
<string>Export List</string>
|
||||||
|
@ -107,11 +107,11 @@ ModFolderPage::ModFolderPage(BaseInstance* inst, std::shared_ptr<ModFolderModel>
|
|||||||
connect(ui->actionChangeVersion, &QAction::triggered, this, &ModFolderPage::changeModVersion);
|
connect(ui->actionChangeVersion, &QAction::triggered, this, &ModFolderPage::changeModVersion);
|
||||||
ui->actionsToolbar->insertActionAfter(ui->actionUpdateItem, ui->actionChangeVersion);
|
ui->actionsToolbar->insertActionAfter(ui->actionUpdateItem, ui->actionChangeVersion);
|
||||||
|
|
||||||
ui->actionsToolbar->addSeparator();
|
|
||||||
|
|
||||||
ui->actionExportMetadata->setToolTip(tr("Export mod's metadata to text."));
|
ui->actionExportMetadata->setToolTip(tr("Export mod's metadata to text."));
|
||||||
connect(ui->actionExportMetadata, &QAction::triggered, this, &ModFolderPage::exportModMetadata);
|
connect(ui->actionExportMetadata, &QAction::triggered, this, &ModFolderPage::exportModMetadata);
|
||||||
ui->actionsToolbar->addAction(ui->actionExportMetadata);
|
ui->actionsToolbar->insertActionAfter(ui->actionDisableItem, ui->actionExportMetadata);
|
||||||
|
|
||||||
|
ui->actionsToolbar->insertSeparator(ui->actionExportMetadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ModFolderPage::shouldDisplay() const
|
bool ModFolderPage::shouldDisplay() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user