UI: Programs: Native separators for FileDialog paths

This commit is contained in:
Nodir Temirkhodjaev 2024-01-03 11:59:02 +03:00
parent 2d55ee11a3
commit bc50cf7ae6

View File

@ -337,10 +337,12 @@ QLayout *ProgramEditDialog::setupAppPathLayout()
if (filePath.isEmpty())
return;
const auto appPath = FileUtil::toNativeSeparators(filePath);
if (isWildcard()) {
TextAreaUtil::appendText(m_editWildcard, filePath);
TextAreaUtil::appendText(m_editWildcard, appPath);
} else {
m_editPath->setText(filePath);
m_editPath->setText(appPath);
}
fillEditName(); // Auto-fill the name