copy of filter_map

This commit is contained in:
Jared Bruni
2021-09-05 14:22:05 -07:00
parent 98a1747463
commit 7e2baaa7e2
2 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ Playback::Playback(QObject *parent) : QThread(parent) {
_custom_cycle_index = 0;
fps_delay = 60;
draw_strings = ac::draw_strings;
filter_map_ex = filter_map;
}
void Playback::setCustomCycle(bool b) {
@@ -262,7 +263,7 @@ void Playback::setPref(int thread_count, int intense) {
void Playback::setIndexChanged(std::string value) {
mutex.lock();
prev_filter = current_filter;
current_filter = filter_map[value];
current_filter = filter_map_ex[value];
// here:
//ac::release_all_objects();
mutex.unlock();

View File

@@ -52,6 +52,7 @@ private:
std::atomic<int> _custom_cycle_index;
std::atomic<int> fps_delay;
std::vector<std::string> draw_strings;
std::unordered_map<std::string, FilterValue> filter_map_ex;
public:
Playback(QObject *parent = 0);
~Playback();