Manager: Warn on close when machines are running
This commit is contained in:
@@ -160,4 +160,15 @@ VMManagerModel::getProcessStats()
|
||||
}
|
||||
}
|
||||
return stats;
|
||||
}
|
||||
|
||||
int
|
||||
VMManagerModel::getActiveMachineCount()
|
||||
{
|
||||
int running = 0;
|
||||
for (const auto& system: machines) {
|
||||
if (system->getProcessStatus() != VMManagerSystem::ProcessStatus::Stopped)
|
||||
running++;
|
||||
}
|
||||
return running;
|
||||
}
|
||||
Reference in New Issue
Block a user