Remove obsolete auto login option.
This commit is contained in:
		| @@ -98,18 +98,6 @@ void InstanceSettings::applySettings() | ||||
| 		m_obj->reset("MinecraftWinHeight"); | ||||
| 	} | ||||
|  | ||||
| 	// Auto Login | ||||
| 	bool login = ui->accountSettingsBox->isChecked(); | ||||
| 	m_obj->set("OverrideLogin", login); | ||||
| 	if (login) | ||||
| 	{ | ||||
| 		m_obj->set("AutoLogin", ui->autoLoginCheckBox->isChecked()); | ||||
| 	} | ||||
| 	else | ||||
| 	{ | ||||
| 		m_obj->reset("AutoLogin"); | ||||
| 	} | ||||
|  | ||||
| 	// Memory | ||||
| 	bool memory = ui->memoryGroupBox->isChecked(); | ||||
| 	m_obj->set("OverrideMemory", memory); | ||||
| @@ -170,10 +158,6 @@ void InstanceSettings::loadSettings() | ||||
| 	ui->windowWidthSpinBox->setValue(m_obj->get("MinecraftWinWidth").toInt()); | ||||
| 	ui->windowHeightSpinBox->setValue(m_obj->get("MinecraftWinHeight").toInt()); | ||||
|  | ||||
| 	// Auto Login | ||||
| 	ui->accountSettingsBox->setChecked(m_obj->get("OverrideLogin").toBool()); | ||||
| 	ui->autoLoginCheckBox->setChecked(m_obj->get("AutoLogin").toBool()); | ||||
|  | ||||
| 	// Memory | ||||
| 	ui->memoryGroupBox->setChecked(m_obj->get("OverrideMemory").toBool()); | ||||
| 	ui->minMemSpinBox->setValue(m_obj->get("MinMemAlloc").toInt()); | ||||
|   | ||||
| @@ -131,31 +131,6 @@ | ||||
|          </layout> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <widget class="QGroupBox" name="accountSettingsBox"> | ||||
|          <property name="enabled"> | ||||
|           <bool>true</bool> | ||||
|          </property> | ||||
|          <property name="title"> | ||||
|           <string>Account Settings</string> | ||||
|          </property> | ||||
|          <property name="checkable"> | ||||
|           <bool>true</bool> | ||||
|          </property> | ||||
|          <property name="checked"> | ||||
|           <bool>false</bool> | ||||
|          </property> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout_6"> | ||||
|           <item> | ||||
|            <widget class="QCheckBox" name="autoLoginCheckBox"> | ||||
|             <property name="text"> | ||||
|              <string>Login automatically when an instance icon is double clicked?</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|          </layout> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <spacer name="verticalSpacerMinecraft"> | ||||
|          <property name="orientation"> | ||||
| @@ -411,7 +386,6 @@ | ||||
|   <tabstop>consoleSettingsBox</tabstop> | ||||
|   <tabstop>showConsoleCheck</tabstop> | ||||
|   <tabstop>autoCloseConsoleCheck</tabstop> | ||||
|   <tabstop>accountSettingsBox</tabstop> | ||||
|   <tabstop>memoryGroupBox</tabstop> | ||||
|   <tabstop>minMemSpinBox</tabstop> | ||||
|   <tabstop>maxMemSpinBox</tabstop> | ||||
|   | ||||
| @@ -150,9 +150,6 @@ void SettingsDialog::applySettings(SettingsObject *s) | ||||
| 	s->set("MinecraftWinWidth", ui->windowWidthSpinBox->value()); | ||||
| 	s->set("MinecraftWinHeight", ui->windowHeightSpinBox->value()); | ||||
|  | ||||
| 	// Auto Login | ||||
| 	s->set("AutoLogin", ui->autoLoginCheckBox->isChecked()); | ||||
|  | ||||
| 	// Memory | ||||
| 	s->set("MinMemAlloc", ui->minMemSpinBox->value()); | ||||
| 	s->set("MaxMemAlloc", ui->maxMemSpinBox->value()); | ||||
| @@ -202,9 +199,6 @@ void SettingsDialog::loadSettings(SettingsObject *s) | ||||
| 	ui->windowWidthSpinBox->setValue(s->get("MinecraftWinWidth").toInt()); | ||||
| 	ui->windowHeightSpinBox->setValue(s->get("MinecraftWinHeight").toInt()); | ||||
|  | ||||
| 	// Auto Login | ||||
| 	ui->autoLoginCheckBox->setChecked(s->get("AutoLogin").toBool()); | ||||
|  | ||||
| 	// Memory | ||||
| 	ui->minMemSpinBox->setValue(s->get("MinMemAlloc").toInt()); | ||||
| 	ui->maxMemSpinBox->setValue(s->get("MaxMemAlloc").toInt()); | ||||
|   | ||||
| @@ -261,22 +261,6 @@ | ||||
|          </layout> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <widget class="QGroupBox" name="accountSettingsBox"> | ||||
|          <property name="title"> | ||||
|           <string>Account Settings</string> | ||||
|          </property> | ||||
|          <layout class="QVBoxLayout" name="verticalLayout"> | ||||
|           <item> | ||||
|            <widget class="QCheckBox" name="autoLoginCheckBox"> | ||||
|             <property name="text"> | ||||
|              <string>Login automatically when an instance icon is double clicked?</string> | ||||
|             </property> | ||||
|            </widget> | ||||
|           </item> | ||||
|          </layout> | ||||
|         </widget> | ||||
|        </item> | ||||
|        <item> | ||||
|         <spacer name="verticalSpacerMinecraft"> | ||||
|          <property name="orientation"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user