mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-13 18:30:02 +01:00
formatting
This commit is contained in:
@@ -1440,19 +1440,18 @@ void AC_MainWindow::openColorWindow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AC_MainWindow::menuFilterChanged(int index) {
|
void AC_MainWindow::menuFilterChanged(int index) {
|
||||||
if(index >= 0) {
|
if(index >= 0) {
|
||||||
loading = true;
|
loading = true;
|
||||||
std::string menu_n = menuNames[index];
|
std::string menu_n = menuNames[index];
|
||||||
filters->clear();
|
filters->clear();
|
||||||
std::vector<std::string> &v = *ac::filter_menu_map[menu_n].menu_list;
|
std::vector<std::string> &v = *ac::filter_menu_map[menu_n].menu_list;
|
||||||
|
std::unordered_map<std::string, std::string> map_values;
|
||||||
std::unordered_map<std::string, std::string> map_values;
|
|
||||||
for(int i = 0; i < static_cast<int>(v.size()); ++i) {
|
for(int i = 0; i < static_cast<int>(v.size()); ++i) {
|
||||||
if(map_values.find(v[i]) == map_values.end()) {
|
if(map_values.find(v[i]) == map_values.end()) {
|
||||||
map_values[v[i]] = v[i];
|
map_values[v[i]] = v[i];
|
||||||
filters->addItem(v[i].c_str());
|
filters->addItem(v[i].c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
filters->setCurrentIndex(0);
|
filters->setCurrentIndex(0);
|
||||||
loading = false;
|
loading = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user