diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-11-30 18:22:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-30 18:22:55 +0100 |
commit | 9e1653ebb471d4d96efda85cbde128c59fe3686a (patch) | |
tree | 5eb71805fc8fa97252c2aaf19b927e6481298184 /launcher/ui/widgets/JavaSettingsWidget.h | |
parent | 42c00213ce97e51cdf9c0a9d3ddb235e64567994 (diff) | |
parent | 884fe0d5741de2a8a78f48c5d37274d8f174ba3a (diff) | |
download | PrismLauncher-9e1653ebb471d4d96efda85cbde128c59fe3686a.tar.gz PrismLauncher-9e1653ebb471d4d96efda85cbde128c59fe3686a.tar.bz2 PrismLauncher-9e1653ebb471d4d96efda85cbde128c59fe3686a.zip |
Merge pull request #436 from Scrumplex/feat-change-maxmem
Closes https://github.com/PrismLauncher/PrismLauncher/issues/426
Diffstat (limited to 'launcher/ui/widgets/JavaSettingsWidget.h')
-rw-r--r-- | launcher/ui/widgets/JavaSettingsWidget.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/launcher/ui/widgets/JavaSettingsWidget.h b/launcher/ui/widgets/JavaSettingsWidget.h index 5344e2cd..e4b7c712 100644 --- a/launcher/ui/widgets/JavaSettingsWidget.h +++ b/launcher/ui/widgets/JavaSettingsWidget.h @@ -56,6 +56,8 @@ public: int maxHeapSize() const; QString javaPath() const; + void updateThresholds(); + protected slots: void memoryValueChanged(int); @@ -85,6 +87,7 @@ private: /* data */ QSpinBox *m_maxMemSpinBox = nullptr; QLabel *m_labelMinMem = nullptr; QLabel *m_labelMaxMem = nullptr; + QLabel *m_labelMaxMemIcon = nullptr; QSpinBox *m_minMemSpinBox = nullptr; QLabel *m_labelPermGen = nullptr; QSpinBox *m_permGenSpinBox = nullptr; @@ -92,9 +95,9 @@ private: /* data */ QIcon yellowIcon; QIcon badIcon; - int observedMinMemory = 0; - int observedMaxMemory = 0; - int observedPermGenMemory = 0; + unsigned int observedMinMemory = 0; + unsigned int observedMaxMemory = 0; + unsigned int observedPermGenMemory = 0; QString queuedCheck; uint64_t m_availableMemory = 0ull; shared_qobject_ptr<JavaChecker> m_checker; |