UI: Defer device properties to separate thread

Because devices can take significant time to enumerate, defer the
properties creation to a separate thread.  The author of this commit
feels a great amount of displeasure over having to write this.
This commit is contained in:
jp9000
2020-08-25 06:30:59 -07:00
parent ab2f3edb2b
commit fcf01304d2
7 changed files with 207 additions and 60 deletions

View File

@@ -238,6 +238,7 @@ set(obs_SOURCES
item-widget-helpers.cpp
context-bar-controls.cpp
horizontal-scroll-area.cpp
context-bar-controls-devices.cpp
vertical-scroll-area.cpp
visibility-item-widget.cpp
slider-absoluteset-style.cpp
@@ -305,6 +306,7 @@ set(obs_HEADERS
item-widget-helpers.hpp
visibility-checkbox.hpp
context-bar-controls.hpp
context-bar-controls-devices.hpp
locked-checkbox.hpp
horizontal-scroll-area.hpp
expand-checkbox.hpp