mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Update display capture toolbar dropdown to use uuid field
This commit is contained in:
parent
fb9b5c829a
commit
ccedbc0218
|
@ -311,15 +311,13 @@ void DisplayCaptureToolbar::Init()
|
||||||
const char *device_str =
|
const char *device_str =
|
||||||
get_os_text(mod, "Monitor", "DisplayCapture.Display", "Screen");
|
get_os_text(mod, "Monitor", "DisplayCapture.Display", "Screen");
|
||||||
ui->deviceLabel->setText(device_str);
|
ui->deviceLabel->setText(device_str);
|
||||||
#ifndef _WIN32
|
|
||||||
is_int = true;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
prop_name = "monitor_id";
|
prop_name = "monitor_id";
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
prop_name = "display";
|
prop_name = "display_uuid";
|
||||||
#else
|
#else
|
||||||
|
is_int = true;
|
||||||
prop_name = "screen";
|
prop_name = "screen";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue