Some b&w conversion fixes (more needed for color lcd)

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:01 +01:00
parent 68bdf025c1
commit da3759a2a3
9 changed files with 90 additions and 57 deletions
+15 -2
View File
@@ -98,11 +98,24 @@ class ModelsList
public:
enum class Format {
txt,
#if defined(SDCARD_YAML)
yaml,
yaml_txt,
load_default = yaml_txt,
save_default = yaml,
#else
load_default = txt,
save_default = txt,
#endif
};
ModelsList();
~ModelsList();
bool load();
void save();
bool load(Format fmt = Format::load_default);
void save(Format fmt = Format::save_default);
void clear();
const std::list<ModelsCategory *> & getCategories() const