Set the device node name as default JSON filename

This commit is contained in:
edisionnano
2025-02-04 22:22:43 +02:00
committed by GitHub
parent f9df8c9513
commit 3dcb98be15

View File

@@ -1194,7 +1194,7 @@ void MainWindow::on_actionSave_JSON_triggered()
}
QString fileName = QFileDialog::getSaveFileName(this,
tr("Save JSON"), "",
tr("Save JSON"), deviceNodeLineEdit->text().section('/', -1) + ".json",
tr("JSON (*.json);;All Files (*)"));
if (fileName.isEmpty())
return;