NOISSUE Use minecraft logic for parsing adresses
This commit is contained in:
parent
d97f13b4aa
commit
f33fe05e5f
3 changed files with 49 additions and 28 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue