Skip to content
Permalink
Browse files

NOISSUE make the global settings button context sensitive

  • Loading branch information...
peterix committed Jun 1, 2019
1 parent 9321608 commit 30fba4d407a8a61288735cc06df96ac4c4fe846c
Showing with 11 additions and 1 deletion.
  1. +11 −1 application/pages/instance/InstanceSettingsPage.cpp
@@ -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()

0 comments on commit 30fba4d

Please sign in to comment.
You can’t perform that action at this time.