1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

ringer: Make sure to reset feedback profile if not set to "quiet"

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-10-28 16:43:42 +02:00
parent e604779497
commit 9fff41fd53

View file

@ -104,14 +104,14 @@ static void
start (CallsRinger *self,
gboolean quiet)
{
if (self->event)
lfb_event_set_feedback_profile (self->event, quiet ? "quiet" : NULL);
if (self->state == CALLS_RING_STATE_PLAYING ||
self->state == CALLS_RING_STATE_REQUEST_PLAY)
return;
if (self->event) {
if (quiet)
lfb_event_set_feedback_profile (self->event, "quiet");
g_clear_object (&self->cancel_ring);
self->cancel_ring = g_cancellable_new ();