Preserve import/export path in file dialogs

This commit is contained in:
GriffinR
2022-11-27 21:22:01 -05:00
parent 3a4ce68232
commit f507b3e8a3
6 changed files with 30 additions and 13 deletions

View File

@@ -91,6 +91,7 @@ void Project::initSignals() {
void Project::set_root(QString dir) {
this->root = dir;
this->importExportPath = dir;
this->parser.set_root(dir);
}
@@ -2608,3 +2609,8 @@ int Project::getMaxObjectEvents()
{
return Project::max_object_events;
}
void Project::setImportExportPath(QString filename)
{
this->importExportPath = QFileInfo(filename).absolutePath();
}