fix auto java install

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2024-06-16 17:54:13 +03:00
parent 8d3e6667cd
commit 2fb3e12492
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -166,7 +166,8 @@ void LaunchProfile::applyCompatibleJavaMajors(QList<int>& javaMajor)
} }
void LaunchProfile::applyCompatibleJavaName(QString javaName) void LaunchProfile::applyCompatibleJavaName(QString javaName)
{ {
m_compatibleJavaName = javaName; if (!javaName.isEmpty())
m_compatibleJavaName = javaName;
} }
void LaunchProfile::applyLibrary(LibraryPtr library, const RuntimeContext& runtimeContext) void LaunchProfile::applyLibrary(LibraryPtr library, const RuntimeContext& runtimeContext)