File tree Expand file tree Collapse file tree
interactive_script/src/interactive_script_plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -264,8 +264,10 @@ void InteractiveScriptGui::on_save() {
264264 }
265265 }*/
266266
267- Filename f {" /data/save_" + std::to_string (time (nullptr )) + " .xml" , Filename::XML};
267+ Filename f {" /data/save_" + std::to_string (time (nullptr )) + " .manual. xml" , Filename::XML};
268268 save_file (f, ui_.blockly_widget ->xml ().toStdString ());
269+ ui_.terminal ->setPlainText (QString::fromStdString (f.name + " saved" ));
270+ ROS_INFO_STREAM (f.name << " saved" );
269271}
270272
271273void InteractiveScriptGui::on_load () {
@@ -283,9 +285,11 @@ void InteractiveScriptGui::on_load() {
283285 }
284286 }*/
285287
286- Filename f {QDir (" /data" , " save_* .xml" ).entryList ().back ().toStdString (), Filename::XML};
288+ Filename f {" /data/ " + QDir (" /data" , " *.manual .xml" ).entryList ().back ().toStdString (), Filename::XML};
287289 ui_.blockly_widget ->loadXml (QString::fromStdString (load_file (f)));
288290 ui_.tabWidget ->setCurrentWidget (ui_.blockly_tab );
291+ ui_.terminal ->setPlainText (QString::fromStdString (f.name + " loaded" ));
292+ ROS_INFO_STREAM (f.name << " loaded" );
289293}
290294
291295bool InteractiveScriptGui::hasConfiguration () const {
You can’t perform that action at this time.
0 commit comments