mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-09 23:08:49 -05:00
Show the full filename to configuration files in the Launcher
This commit is contained in:
@@ -397,7 +397,7 @@ void LauncherWindow::populateWindowConfigsList(std::string preset) {
|
||||
if (p.path().extension() != ".xml" && p.path().extension() != ".json") {
|
||||
continue;
|
||||
}
|
||||
_windowConfigBox->addItem(QString::fromStdString(p.path().stem().string()));
|
||||
_windowConfigBox->addItem(QString::fromStdString(p.path().filename().string()));
|
||||
++_userConfigCount;
|
||||
}
|
||||
_windowConfigBox->addItem(QString::fromStdString("--- OpenSpace Configurations ---"));
|
||||
@@ -410,7 +410,9 @@ void LauncherWindow::populateWindowConfigsList(std::string preset) {
|
||||
if (p.path().extension() != ".xml" && p.path().extension() != ".json") {
|
||||
continue;
|
||||
}
|
||||
_windowConfigBox->addItem(QString::fromStdString(p.path().stem().string()));
|
||||
_windowConfigBox->addItem(
|
||||
QString::fromStdString(p.path().filename().string())
|
||||
);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -434,7 +436,7 @@ void LauncherWindow::populateWindowConfigsList(std::string preset) {
|
||||
}
|
||||
}
|
||||
|
||||
void LauncherWindow::openProfileEditor(const std::string& profile, const bool isUserProfile) {
|
||||
void LauncherWindow::openProfileEditor(const std::string& profile, bool isUserProfile) {
|
||||
std::optional<Profile> p;
|
||||
std::string saveProfilePath = isUserProfile ? _userProfilePath : _profilePath;
|
||||
if (profile.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user