diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-06-01 18:05:42 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-01 18:05:42 +0200 |
commit | 30fba4d407a8a61288735cc06df96ac4c4fe846c (patch) | |
tree | e340ea7190e74db253254f818939a191282a194c /application | |
parent | 932160818e8e15dc124e1ce281749d28e10c5e66 (diff) | |
download | MultiMC-30fba4d407a8a61288735cc06df96ac4c4fe846c.tar MultiMC-30fba4d407a8a61288735cc06df96ac4c4fe846c.tar.gz MultiMC-30fba4d407a8a61288735cc06df96ac4c4fe846c.tar.lz MultiMC-30fba4d407a8a61288735cc06df96ac4c4fe846c.tar.xz MultiMC-30fba4d407a8a61288735cc06df96ac4c4fe846c.zip |
NOISSUE make the global settings button context sensitive
Diffstat (limited to 'application')
-rw-r--r-- | application/pages/instance/InstanceSettingsPage.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/application/pages/instance/InstanceSettingsPage.cpp b/application/pages/instance/InstanceSettingsPage.cpp index 210820fc..b7b0a863 100644 --- a/application/pages/instance/InstanceSettingsPage.cpp +++ b/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() |