feat: Assign java max mem based on system RAM

If the system has <6GB RAM, it uses (system RAM / 1.5)
If the system has >=6GB, it uses 4GB

Signed-off-by: txtsd <code@ihavea.quest>
This commit is contained in:
txtsd
2022-11-04 11:58:58 +05:30
parent 2cf4d5f8ec
commit 6961a39cd2
2 changed files with 17 additions and 1 deletions

View File

@ -198,6 +198,8 @@ public:
void ShowGlobalSettings(class QWidget * parent, QString open_page = QString());
int suitableMaxMem();
signals:
void updateAllowedChanged(bool status);
void globalSettingsAboutToOpen();