NOISSUE make the global settings button context sensitive

This commit is contained in:
Petr Mrázek 2019-06-01 18:05:42 +02:00
parent 932160818e
commit 30fba4d407

View File

@ -39,7 +39,17 @@ InstanceSettingsPage::~InstanceSettingsPage()
void InstanceSettingsPage::globalSettingsButtonClicked(bool) 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() bool InstanceSettingsPage::apply()