mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Make requested changes
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
@ -50,13 +50,11 @@ MinecraftSettingsWidget::MinecraftSettingsWidget(MinecraftInstancePtr instance,
|
||||
m_ui->setupUi(this);
|
||||
|
||||
if (m_instance == nullptr) {
|
||||
for (int i = 0; i < m_ui->settingsTabs->count(); ++i) {
|
||||
for (int i = m_ui->settingsTabs->count() - 1; i >= 0; --i) {
|
||||
const QString name = m_ui->settingsTabs->widget(i)->objectName();
|
||||
|
||||
if (name == "javaPage" || name == "launchPage") {
|
||||
if (name == "javaPage" || name == "launchPage")
|
||||
m_ui->settingsTabs->removeTab(i);
|
||||
--i;
|
||||
}
|
||||
}
|
||||
|
||||
m_ui->openGlobalSettingsButton->setVisible(false);
|
||||
|
Reference in New Issue
Block a user