Move instance settings back to the main window.
This commit is contained in:
parent
6d34411f54
commit
8c71a5d61f
@ -941,6 +941,16 @@ void MainWindow::on_actionSettings_triggered()
|
||||
updateToolsMenu();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionInstanceSettings_triggered()
|
||||
{
|
||||
if (m_selectedInstance)
|
||||
{
|
||||
InstanceSettings settings(&m_selectedInstance->settings(), this);
|
||||
settings.setWindowTitle(tr("Instance settings"));
|
||||
settings.exec();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_actionManageAccounts_triggered()
|
||||
{
|
||||
AccountListDialog dialog(this);
|
||||
|
@ -80,6 +80,8 @@ slots:
|
||||
|
||||
void on_actionSettings_triggered();
|
||||
|
||||
void on_actionInstanceSettings_triggered();
|
||||
|
||||
void on_actionManageAccounts_triggered();
|
||||
|
||||
void on_actionReportBug_triggered();
|
||||
|
@ -116,7 +116,7 @@
|
||||
<addaction name="actionScreenshots"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionEditInstance"/>
|
||||
<addaction name="actionInstance_Settings"/>
|
||||
<addaction name="actionInstanceSettings"/>
|
||||
<addaction name="actionViewSelectedInstFolder"/>
|
||||
<addaction name="actionConfig_Folder"/>
|
||||
<addaction name="separator"/>
|
||||
@ -489,7 +489,7 @@
|
||||
<string><html><head/><body><p>View and upload screenshots for this instance</p></body></html></string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInstance_Settings">
|
||||
<action name="actionInstanceSettings">
|
||||
<property name="text">
|
||||
<string>Instance Settings</string>
|
||||
</property>
|
||||
|
@ -190,13 +190,6 @@ bool InstanceEditDialog::reloadInstanceVersion()
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceEditDialog::on_settingsBtn_clicked()
|
||||
{
|
||||
InstanceSettings settings(&m_inst->settings(), this);
|
||||
settings.setWindowTitle(tr("Instance settings"));
|
||||
settings.exec();
|
||||
}
|
||||
|
||||
void InstanceEditDialog::on_reloadLibrariesBtn_clicked()
|
||||
{
|
||||
reloadInstanceVersion();
|
||||
|
@ -42,7 +42,6 @@ slots:
|
||||
void on_reloadLibrariesBtn_clicked();
|
||||
void on_removeLibraryBtn_clicked();
|
||||
void on_resetLibraryOrderBtn_clicked();
|
||||
void on_settingsBtn_clicked();
|
||||
void on_moveLibraryUpBtn_clicked();
|
||||
void on_moveLibraryDownBtn_clicked();
|
||||
|
||||
|
@ -151,20 +151,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="settingsBtn">
|
||||
<property name="text">
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_7">
|
||||
<property name="orientation">
|
||||
|
Loading…
Reference in New Issue
Block a user