Hide .dot tmp / system files from list in frequency manager module

This commit is contained in:
Rascafr 2020-09-11 20:34:15 +02:00
parent 3425ca8d54
commit ccb3937e37

View File

@ -30,6 +30,11 @@ std::vector<std::string> get_freqman_files() {
for (auto file : files) {
file_list.emplace_back(file.stem().string());
std::string file_name = file.stem().string();
// don't propose tmp / hidden files in freqman's list
if (file_name.length() && file_name[0] != '.') {
file_list.emplace_back(file_name);
}
}
return file_list;