Manager: Fix machine status showing as "Running"...

instead of "Paused/Waiting" when opening settings for a stopped machine
by establishing a minimal manager socket connection
This commit is contained in:
Alexander Babikov
2025-07-28 19:25:04 +05:00
parent cbd5991273
commit b5ced14d1b
3 changed files with 30 additions and 13 deletions

View File

@@ -182,19 +182,6 @@ VMManagerMain::settingsButtonPressed() {
return;
}
selected_sysconfig->launchSettings();
// If the process is already running, the system will be instructed to open its settings window.
// Otherwise the process will be launched and will need to be tracked here.
if (!selected_sysconfig->isProcessRunning()) {
connect(selected_sysconfig->process, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),
[=](const int exitCode, const QProcess::ExitStatus exitStatus){
if (exitCode != 0 || exitStatus != QProcess::NormalExit) {
qInfo().nospace().noquote() << "Abnormal program termination while launching settings: exit code " << exitCode << ", exit status " << exitStatus;
return;
}
selected_sysconfig->reloadConfig();
vm_details->updateData(selected_sysconfig);
});
}
}
void