From cd108fd02975eac3a3fed2fde26c58de5cbdaf1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 4 Sep 2015 02:10:29 +0200 Subject: GH-1223 fix override settings They now work more like passthrough settings, except not passing through set and reset --- application/pages/InstanceSettingsPage.cpp | 3 +++ application/pages/InstanceSettingsPage.ui | 29 ++++++++++++++++++++--------- 2 files changed, 23 insertions(+), 9 deletions(-) (limited to 'application') diff --git a/application/pages/InstanceSettingsPage.cpp b/application/pages/InstanceSettingsPage.cpp index 296de379..c651fcbd 100644 --- a/application/pages/InstanceSettingsPage.cpp +++ b/application/pages/InstanceSettingsPage.cpp @@ -119,11 +119,13 @@ void InstanceSettingsPage::applySettings() if (custcmd) { m_settings->set("PreLaunchCommand", ui->preLaunchCmdTextBox->text()); + m_settings->set("WrapperCommand", ui->preLaunchCmdTextBox->text()); m_settings->set("PostExitCommand", ui->postExitCmdTextBox->text()); } else { m_settings->reset("PreLaunchCommand"); + m_settings->reset("WrapperCommand"); m_settings->reset("PostExitCommand"); } } @@ -161,6 +163,7 @@ void InstanceSettingsPage::loadSettings() // Custom Commands ui->customCommandsGroupBox->setChecked(m_settings->get("OverrideCommands").toBool()); ui->preLaunchCmdTextBox->setText(m_settings->get("PreLaunchCommand").toString()); + ui->wrapperCmdTextBox->setText(m_settings->get("WrapperCommand").toString()); ui->postExitCmdTextBox->setText(m_settings->get("PostExitCommand").toString()); } diff --git a/application/pages/InstanceSettingsPage.ui b/application/pages/InstanceSettingsPage.ui index 64109378..c9c16a6c 100644 --- a/application/pages/InstanceSettingsPage.ui +++ b/application/pages/InstanceSettingsPage.ui @@ -45,7 +45,7 @@ true - Java installation + Java ins&tallation true @@ -87,7 +87,7 @@ true - Memory + Memor&y true @@ -305,7 +305,7 @@ true - Console Settings + Conso&le Settings true @@ -357,7 +357,7 @@ true - Custom Commands + Cus&tom Commands true @@ -366,16 +366,16 @@ false - - - - + Post-exit command: + + + @@ -383,9 +383,19 @@ - + + + + + Wrapper command: + + + + + + @@ -446,6 +456,7 @@ autoCloseConsoleCheck customCommandsGroupBox preLaunchCmdTextBox + wrapperCmdTextBox postExitCmdTextBox -- cgit v1.2.3