mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-04-24 13:21:32 +00:00
Hide .dot tmp / system files from list in frequency manager module
This commit is contained in:
parent
3425ca8d54
commit
ccb3937e37
@ -30,6 +30,11 @@ std::vector<std::string> get_freqman_files() {
|
|||||||
|
|
||||||
for (auto file : files) {
|
for (auto file : files) {
|
||||||
file_list.emplace_back(file.stem().string());
|
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;
|
return file_list;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user