NOISSUE Use minecraft logic for parsing adresses

This commit is contained in:
Janrupf 2021-05-22 17:24:37 +02:00
parent d97f13b4aa
commit f33fe05e5f
3 changed files with 49 additions and 28 deletions

View file

@ -198,12 +198,10 @@ void InstanceSettingsPage::applySettings()
if (joinServerOnLaunch)
{
m_settings->set("JoinServerOnLaunchAddress", ui->serverJoinAddress->text());
m_settings->set("JoinServerOnLaunchPort", ui->serverJoinPort->value());
}
else
{
m_settings->reset("JoinServerOnLaunchAddress");
m_settings->reset("JoinServerOnLaunchPort");
}
}
@ -274,7 +272,6 @@ void InstanceSettingsPage::loadSettings()
ui->serverJoinGroupBox->setChecked(m_settings->get("JoinServerOnLaunch").toBool());
ui->serverJoinAddress->setText(m_settings->get("JoinServerOnLaunchAddress").toString());
ui->serverJoinPort->setValue(m_settings->get("JoinServerOnLaunchPort").toInt());
}
void InstanceSettingsPage::on_javaDetectBtn_clicked()