commit 8884332b64fbcfd5971112301da5f4f99abe56fc
parent ff57f6b8404239afc8f666e28bac73008f2b8c45
Author: Jacki <jacki@thejackimonster.de>
Date: Sat, 20 Apr 2024 17:25:52 +0200
Fix wrong stack switch on pause
Signed-off-by: Jacki <jacki@thejackimonster.de>
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ui/new_contact.c b/src/ui/new_contact.c
@@ -123,7 +123,7 @@ handle_camera_combo_box_change(GtkComboBox *widget,
static void
_disable_video_processing(UI_NEW_CONTACT_Handle *handle,
- gboolean drop_pipeline)
+ gboolean drop_pipeline)
{
g_assert(handle);
@@ -132,8 +132,10 @@ _disable_video_processing(UI_NEW_CONTACT_Handle *handle,
if (handle->camera_count)
gtk_stack_set_visible_child(handle->preview_stack, handle->fail_box);
- else
+ else if (drop_pipeline)
gtk_stack_set_visible_child(handle->preview_stack, handle->no_camera_box);
+ else
+ gtk_stack_set_visible_child(handle->preview_stack, handle->loading_box);
skip_stack:
if ((!(handle->pipeline)) || (!drop_pipeline))