Manager: Temporarily disable the system location option in the new machine wizard

This commit is contained in:
Alexander Babikov
2025-08-08 00:51:46 +05:00
parent e3c704326e
commit 7b5a861005
3 changed files with 41 additions and 1 deletions

View File

@@ -349,7 +349,11 @@ VMManagerMain::newMachineWizard()
const auto wizard = new VMManagerAddMachine(this);
if (wizard->exec() == QDialog::Accepted) {
const auto newName = wizard->field("systemName").toString();
#ifdef CUSTOM_SYSTEM_LOCATION
const auto systemDir = wizard->field("systemLocation").toString();
#else
const auto systemDir = QDir(vmm_path).path();
#endif
const auto existingConfiguration = wizard->field("existingConfiguration").toString();
addNewSystem(newName, systemDir, existingConfiguration);
}