Bläddra i källkod

UI: Update display capture toolbar dropdown to use uuid field

PatTheMav 2 år sedan
förälder
incheckning
ccedbc0218
1 ändrade filer med 2 tillägg och 4 borttagningar
  1. 2 4
      UI/context-bar-controls.cpp

+ 2 - 4
UI/context-bar-controls.cpp

@@ -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