Merge pull request #5978 from lemondrops/manager-4

Add a language selection dropdown in manager preferences
This commit is contained in:
Miran Grča
2025-08-17 15:35:42 +02:00
committed by GitHub
10 changed files with 112 additions and 3 deletions

View File

@@ -759,6 +759,20 @@ VMManagerMain::onPreferencesUpdated()
}
}
void
VMManagerMain::onLanguageUpdated()
{
vm_model->refreshConfigs();
/* Hack to work around details widgets not being re-translatable
without going through layers of abstraction */
ui->detailsArea->layout()->removeWidget(vm_details);
delete vm_details;
vm_details = new VMManagerDetails();
ui->detailsArea->layout()->addWidget(vm_details);
if (vm_model->rowCount(QModelIndex()) > 0)
vm_details->updateData(selected_sysconfig);
}
int
VMManagerMain::getActiveMachineCount()
{