mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
Added NagUtils, nag people about trying to override JVM memory options
This commit is contained in:
parent
09dc356883
commit
bade253a1a
5 changed files with 69 additions and 0 deletions
|
|
@ -66,6 +66,7 @@
|
|||
#include "logic/OneSixAssets.h"
|
||||
#include "logic/OneSixUpdate.h"
|
||||
#include "logic/JavaUtils.h"
|
||||
#include "logic/NagUtils.h"
|
||||
|
||||
#include "logic/LegacyInstance.h"
|
||||
|
||||
|
|
@ -471,9 +472,12 @@ void MainWindow::instanceActivated(QModelIndex index)
|
|||
{
|
||||
if (!index.isValid())
|
||||
return;
|
||||
|
||||
BaseInstance *inst =
|
||||
(BaseInstance *)index.data(InstanceList::InstancePointerRole).value<void *>();
|
||||
|
||||
NagUtils::checkJVMArgs(MMC->settings()->get("JvmArgs").toString(), this);
|
||||
|
||||
bool autoLogin = MMC->settings()->get("AutoLogin").toBool();
|
||||
if (autoLogin)
|
||||
doAutoLogin();
|
||||
|
|
@ -485,6 +489,7 @@ void MainWindow::on_actionLaunchInstance_triggered()
|
|||
{
|
||||
if (m_selectedInstance)
|
||||
{
|
||||
NagUtils::checkJVMArgs(MMC->settings()->get("JvmArgs").toString(), this);
|
||||
doLogin();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue