aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-17 20:03:06 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-17 20:03:06 +0200
commit7048ed6184f607623534dfe84b74124090667ec8 (patch)
tree768eeb478dc47fdec262f5dc6273832db65a7d15 /src/main.cpp
parent91d725840e2d518bd11dbd446ac133b095f03148 (diff)
Remove build directory in install script
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 4 insertions, 4 deletions
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));