NOISSUE make the global settings button context sensitive
This commit is contained in:
parent
932160818e
commit
30fba4d407
1 changed files with 11 additions and 1 deletions
|
@ -39,7 +39,17 @@ InstanceSettingsPage::~InstanceSettingsPage()
|
|||
|
||||
void InstanceSettingsPage::globalSettingsButtonClicked(bool)
|
||||
{
|
||||
MMC->ShowGlobalSettings(this, "global-settings");
|
||||
switch(ui->settingsTabs->currentIndex()) {
|
||||
case 0:
|
||||
MMC->ShowGlobalSettings(this, "java-settings");
|
||||
return;
|
||||
case 1:
|
||||
MMC->ShowGlobalSettings(this, "minecraft-settings");
|
||||
return;
|
||||
case 2:
|
||||
MMC->ShowGlobalSettings(this, "custom-commands");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
bool InstanceSettingsPage::apply()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue