cabana: update recent files in menu after save as (#27926)

old-commit-hash: 48f8c02cf14fe764875477fee2c95c746d76f200
This commit is contained in:
Dean Lee
2023-04-17 00:55:03 +08:00
committed by GitHub
parent f138eb8447
commit b8fcd32542
+1
View File
@@ -432,6 +432,7 @@ void MainWindow::saveAs() {
QString fn = QFileDialog::getSaveFileName(this, tr("Save File"), QDir::cleanPath(settings.last_dir + "/untitled.dbc"), tr("DBC (*.dbc)"));
if (!fn.isEmpty()) {
dbc_file->saveAs(fn);
updateRecentFiles(fn);
}
}
}