mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Fix tab inconsistencies
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -50,7 +50,7 @@ MinecraftSettingsWidget::MinecraftSettingsWidget(InstancePtr instance, QWidget*
|
||||
for (int i = 0; i < m_ui->settingsTabs->count(); ++i) {
|
||||
const QString name = m_ui->settingsTabs->widget(i)->objectName();
|
||||
|
||||
if (name == "javaTab" || name == "launchTab") {
|
||||
if (name == "javaPage" || name == "launchPage") {
|
||||
m_ui->settingsTabs->removeTab(i);
|
||||
--i;
|
||||
}
|
||||
@ -342,6 +342,8 @@ void MinecraftSettingsWidget::openGlobalSettings()
|
||||
{
|
||||
const QString id = m_ui->settingsTabs->currentWidget()->objectName();
|
||||
|
||||
qDebug() << id;
|
||||
|
||||
if (id == "javaPage")
|
||||
APPLICATION->ShowGlobalSettings(this, "java-settings");
|
||||
else // TODO select tab
|
||||
|
Reference in New Issue
Block a user