mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix tab inconsistencies
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
36a35d7925
commit
39ae2fbd4a
2 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue