| 4374 | } |
| 4375 | |
| 4376 | void Config::setDisplayTemporary(int index, bool isTemporary) noexcept |
| 4377 | { |
| 4378 | if (index >= 0 && index < static_cast<int>(getImpl()->m_displays.size())) |
| 4379 | { |
| 4380 | getImpl()->m_displays[index].second.m_temporary = isTemporary; |
| 4381 | |
| 4382 | getImpl()->m_displayCache.clear(); |
| 4383 | AutoMutex lock(getImpl()->m_cacheidMutex); |
| 4384 | getImpl()->resetCacheIDs(); |
| 4385 | } |
| 4386 | } |
| 4387 | |
| 4388 | int Config::getNumViews(ViewType type, const char * display) const |
| 4389 | { |