mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Merge pull request #184 from rascafr/rascafr/freq-manager-hide-tmp-dot-files
Hide temporary & OS system files from category files list
This commit is contained in:
commit
4390647e28
@ -29,7 +29,11 @@ std::vector<std::string> get_freqman_files() {
|
||||
auto files = scan_root_files(u"FREQMAN", u"*.TXT");
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user