Skip to content

Commit

Permalink
Added mkdir for extra output dirs needed. Xrf-maps makes there but if…
Browse files Browse the repository at this point in the history
… you run GUI first they are missing.
  • Loading branch information
Arthur Glowacki committed Nov 18, 2024
1 parent 4efbb57 commit fb5dd9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/uProbeX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,12 @@ void uProbeX::openMapsWorkspace(QString dirName)
QDir dir(dirName);
dir.mkdir("img.dat");
dir.mkdir("output");
QString ss1 = QString("output") + QDir::separator() + QString::fromStdString(STR_FIT_SPEC_DIR);
dir.mkdir(ss1);
ss1 = QString("output") + QDir::separator() + QString::fromStdString(STR_INT_SPEC_DIR);
dir.mkdir(ss1);
ss1 = QString("output") + QDir::separator() + QString::fromStdString(STR_FIT_PARAM_DIR);
dir.mkdir(ss1);

QStringList recentPaths = Preferences::inst()->getValue(STR_RECENT_MAPS_WORKSPACES).toStringList();
recentPaths.removeAll(dirName);
Expand Down

0 comments on commit fb5dd9b

Please sign in to comment.