aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-11-29 19:58:07 +0100
committerdec05eba <dec05eba@protonmail.com>2023-11-29 19:58:07 +0100
commitce2d4526f255b634e247a887c91396e677cb60e2 (patch)
tree414466d4ed7b8a4907540dfca827064248104074 /src
parent3cedc41cf8ab63e894aee6b2d7c1a4cb895c6d08 (diff)
Remove 'remove password prompt' for now
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2ff29ac..3bf6f00 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2065,14 +2065,14 @@ static gboolean on_remove_password_prompts_button_click(GtkButton*, gpointer) {
break;
}
case 20: {
- GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
+ GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
"Unable to remove password prompts as it appears you don't have polkit installed (/etc/polkit-1 doesn't exist)");
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
break;
}
case 21: {
- GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
+ GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
"Unable to remove password prompts (failed to create polkit /etc/polkit-1/localauthority/50-local.d/44-gsr.pkla and /etc/polkit-1/rules.d/44-gsr.rules");
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
@@ -2120,6 +2120,8 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a
gtk_combo_box_set_active(GTK_COMBO_BOX(view_combo_box), 0);
g_signal_connect(view_combo_box, "changed", G_CALLBACK(view_combo_box_change_callback), view_combo_box);
+ // TODO:
+ #if 0
if(is_inside_flatpak() && flatpak_is_installed_as_system() && drm_card_path[0] != '\0') {
GtkGrid *password_prompt_grid = GTK_GRID(gtk_grid_new());
gtk_grid_attach(grid, GTK_WIDGET(password_prompt_grid), 0, grid_row++, 2, 1);
@@ -2143,6 +2145,7 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a
else
gtk_widget_set_sensitive(GTK_WIDGET(remove_password_prompts_button), true);
}
+ #endif
GtkFrame *record_area_frame = GTK_FRAME(gtk_frame_new("Record area"));
gtk_grid_attach(grid, GTK_WIDGET(record_area_frame), 0, grid_row++, 2, 1);