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) {
|
for (int i = 0; i < m_ui->settingsTabs->count(); ++i) {
|
||||||
const QString name = m_ui->settingsTabs->widget(i)->objectName();
|
const QString name = m_ui->settingsTabs->widget(i)->objectName();
|
||||||
|
|
||||||
if (name == "javaTab" || name == "launchTab") {
|
if (name == "javaPage" || name == "launchPage") {
|
||||||
m_ui->settingsTabs->removeTab(i);
|
m_ui->settingsTabs->removeTab(i);
|
||||||
--i;
|
--i;
|
||||||
}
|
}
|
||||||
@ -342,6 +342,8 @@ void MinecraftSettingsWidget::openGlobalSettings()
|
|||||||
{
|
{
|
||||||
const QString id = m_ui->settingsTabs->currentWidget()->objectName();
|
const QString id = m_ui->settingsTabs->currentWidget()->objectName();
|
||||||
|
|
||||||
|
qDebug() << id;
|
||||||
|
|
||||||
if (id == "javaPage")
|
if (id == "javaPage")
|
||||||
APPLICATION->ShowGlobalSettings(this, "java-settings");
|
APPLICATION->ShowGlobalSettings(this, "java-settings");
|
||||||
else // TODO select tab
|
else // TODO select tab
|
||||||
|
@ -282,7 +282,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="javaTab">
|
<widget class="QWidget" name="javaPage">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Java</string>
|
<string>Java</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user