From 7048ed6184f607623534dfe84b74124090667ec8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 17 Jul 2024 20:03:06 +0200 Subject: Remove build directory in install script --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index a2e8c1a..08dec68 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2533,17 +2533,17 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a gtk_list_store_set(store, &iter, 1, "focused", -1); } else { gtk_list_store_append(store, &iter); - gtk_list_store_set(store, &iter, 0, "Window", -1, "window", -1); + gtk_list_store_set(store, &iter, 0, "Window", -1); gtk_list_store_set(store, &iter, 1, "window", -1); gtk_list_store_append(store, &iter); - gtk_list_store_set(store, &iter, 0, "Follow focused window", -1, "focused", -1); + gtk_list_store_set(store, &iter, 0, "Follow focused window", -1); gtk_list_store_set(store, &iter, 1, "focused", -1); } const bool allow_screen_capture = is_monitor_capture_drm() || nvfbc_installed; if(allow_screen_capture) { - if(gsr_info.system_info.display_server != DisplayServer::WAYLAND && gsr_info.gpu_info.vendor == GpuVendor::NVIDIA) { + if(gsr_info.supported_capture_options.screen) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, "All monitors", -1); gtk_list_store_set(store, &iter, 1, "screen", -1); @@ -2582,7 +2582,7 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a } gtk_list_store_append(store, &iter); - gtk_list_store_set(store, &iter, 0, "Desktop portal", -1); + gtk_list_store_set(store, &iter, 0, gsr_info.supported_capture_options.portal ? "Desktop portal (experimental)" : "Desktop portal (not supported on your system)", -1); gtk_list_store_set(store, &iter, 1, "portal", -1); record_area_selection_menu = GTK_COMBO_BOX(gtk_combo_box_new_with_model(record_area_selection_model)); -- cgit v1.2.3