Attempt to find jvisualvm
This commit is contained in:
parent
2e64d0308c
commit
c608841f77
@ -39,7 +39,12 @@ void JVisualVM::beginProfilingImpl(MinecraftProcess *process)
|
|||||||
|
|
||||||
void JVisualVMFactory::registerSettings(SettingsObject *settings)
|
void JVisualVMFactory::registerSettings(SettingsObject *settings)
|
||||||
{
|
{
|
||||||
settings->registerSetting("JVisualVMPath");
|
QString defaultValue = QStandardPaths::findExecutable("jvisualvm");
|
||||||
|
if (defaultValue.isNull())
|
||||||
|
{
|
||||||
|
defaultValue = QStandardPaths::findExecutable("visualvm");
|
||||||
|
}
|
||||||
|
settings->registerSetting("JVisualVMPath", defaultValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseExternalTool *JVisualVMFactory::createTool(BaseInstance *instance, QObject *parent)
|
BaseExternalTool *JVisualVMFactory::createTool(BaseInstance *instance, QObject *parent)
|
||||||
|
Loading…
Reference in New Issue
Block a user