mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-15 16:37:15 +00:00
NOISSUE Use minecraft logic for parsing adresses
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user