MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / initialize

Method initialize

launcher/ui/widgets/JavaSettingsWidget.cpp:186–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void JavaSettingsWidget::initialize()
187{
188 m_versionWidget->initialize(APPLICATION->javalist().get());
189 m_versionWidget->selectSearch();
190 m_versionWidget->setResizeOn(2);
191 auto s = APPLICATION->settings();
192 // Memory
193 observedMinMemory = s->get("MinMemAlloc").toInt();
194 observedMaxMemory = s->get("MaxMemAlloc").toInt();
195 observedPermGenMemory = s->get("PermGen").toInt();
196 m_minMemSpinBox->setValue(observedMinMemory);
197 m_maxMemSpinBox->setValue(observedMaxMemory);
198 m_permGenSpinBox->setValue(observedPermGenMemory);
199 updateThresholds();
200 if (BuildConfig.JAVA_DOWNLOADER_ENABLED) {
201 m_autodownloadCheckBox->setChecked(true);
202 }
203}
204
205void JavaSettingsWidget::refresh()
206{

Callers

nothing calls this directly

Calls 6

javalistMethod · 0.80
selectSearchMethod · 0.80
setValueMethod · 0.80
getMethod · 0.45
setResizeOnMethod · 0.45
settingsMethod · 0.45

Tested by

no test coverage detected