mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
Remove systeminfo; move getSystemRam into SysInfo.h (#4323)
This commit is contained in:
commit
fda9e74972
22 changed files with 117 additions and 584 deletions
|
|
@ -46,7 +46,7 @@
|
|||
#include "java/JavaInstallList.h"
|
||||
#include "java/JavaUtils.h"
|
||||
#include "settings/Setting.h"
|
||||
#include "sys.h"
|
||||
#include "SysInfo.h"
|
||||
#include "ui/dialogs/CustomMessageBox.h"
|
||||
#include "ui/dialogs/VersionSelectDialog.h"
|
||||
#include "ui/java/InstallJavaDialog.h"
|
||||
|
|
@ -285,7 +285,7 @@ void JavaSettingsWidget::onJavaAutodetect()
|
|||
}
|
||||
void JavaSettingsWidget::updateThresholds()
|
||||
{
|
||||
auto sysMiB = Sys::getSystemRam() / Sys::mebibyte;
|
||||
auto sysMiB = SysInfo::getSystemRamMiB();
|
||||
unsigned int maxMem = m_ui->maxMemSpinBox->value();
|
||||
unsigned int minMem = m_ui->minMemSpinBox->value();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue