change 'Install Mods' -> 'Download Mods' and change position

This commit is contained in:
flow 2022-03-03 01:10:10 -03:00
parent ca211558b5
commit f95cebaf06
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469
2 changed files with 10 additions and 2 deletions

View File

@ -144,8 +144,7 @@ ModFolderPage::ModFolderPage(
{ {
ui->setupUi(this); ui->setupUi(this);
if(id == "mods") { if(id == "mods") {
auto act = new QAction(tr("Install Mods"), this); auto act = ui->actionDownload;
ui->actionsToolbar->insertActionBefore(ui->actionView_configs,act);
connect(act, &QAction::triggered, this, &ModFolderPage::on_actionInstall_mods_triggered); connect(act, &QAction::triggered, this, &ModFolderPage::on_actionInstall_mods_triggered);
} }
ui->actionsToolbar->insertSpacer(ui->actionView_configs); ui->actionsToolbar->insertSpacer(ui->actionView_configs);

View File

@ -84,6 +84,7 @@
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="actionAdd"/> <addaction name="actionAdd"/>
<addaction name="actionDownload"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionRemove"/> <addaction name="actionRemove"/>
<addaction name="actionEnable"/> <addaction name="actionEnable"/>
@ -99,6 +100,14 @@
<string>Add mods</string> <string>Add mods</string>
</property> </property>
</action> </action>
<action name="actionDownload">
<property name="text">
<string>&amp;Download Mods</string>
</property>
<property name="toolTip">
<string>Download Mods</string>
</property>
</action>
<action name="actionRemove"> <action name="actionRemove">
<property name="text"> <property name="text">
<string>&amp;Remove</string> <string>&amp;Remove</string>