Manager: Improve machine load times by caching details labels

This commit is contained in:
RichardG867
2025-12-24 01:09:48 -03:00
parent 3dd5657dec
commit 9366ddd60d
3 changed files with 58 additions and 27 deletions

View File

@@ -263,6 +263,8 @@ VMManagerDetails::updateConfig(VMManagerSystem *passed_sysconfig)
// * First you clear it with VMManagerDetailSection::clear()
// * Then you add each line with VMManagerDetailSection::addSection()
setUpdatesEnabled(false);
// System
systemSection->clear();
systemSection->addSection("Machine", passed_sysconfig->getDisplayValue(VMManager::Display::Name::Machine));
@@ -320,6 +322,8 @@ VMManagerDetails::updateConfig(VMManagerSystem *passed_sysconfig)
inputSection->setSections();
portsSection->setSections();
otherSection->setSections();
setUpdatesEnabled(true);
}
void