More dark mode fixes for Windows

Also enforce modality for progress dialog if possible
This commit is contained in:
Cacodemon345
2025-05-31 17:42:46 +06:00
parent db8de7317d
commit 06e1d0a5eb
6 changed files with 23 additions and 11 deletions

View File

@@ -390,7 +390,7 @@ VMManagerMain::addNewSystem(const QString &name, const QString &dir, const QStri
return;
}
const auto current_index = ui->listView->currentIndex();
vm_model->reload();
vm_model->reload(this);
const auto created_object = vm_model->getIndexForConfigFile(new_system->config_file);
if (created_object.row() < 0) {
// For some reason the index of the new object couldn't be determined. Fall back to the old index.