mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-29 05:10:20 +02:00
Fix tab inconsistencies
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
36a35d7925
commit
39ae2fbd4a
@ -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
|
||||
|
@ -282,7 +282,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="javaTab">
|
||||
<widget class="QWidget" name="javaPage">
|
||||
<attribute name="title">
|
||||
<string>Java</string>
|
||||
</attribute>
|
||||
|
Loading…
x
Reference in New Issue
Block a user