mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-12-14 00:17:35 +00:00
ringer: Make sure to reset feedback profile if not set to "quiet"
This commit is contained in:
parent
e604779497
commit
9fff41fd53
1 changed files with 3 additions and 3 deletions
|
@ -104,14 +104,14 @@ static void
|
||||||
start (CallsRinger *self,
|
start (CallsRinger *self,
|
||||||
gboolean quiet)
|
gboolean quiet)
|
||||||
{
|
{
|
||||||
|
if (self->event)
|
||||||
|
lfb_event_set_feedback_profile (self->event, quiet ? "quiet" : NULL);
|
||||||
|
|
||||||
if (self->state == CALLS_RING_STATE_PLAYING ||
|
if (self->state == CALLS_RING_STATE_PLAYING ||
|
||||||
self->state == CALLS_RING_STATE_REQUEST_PLAY)
|
self->state == CALLS_RING_STATE_REQUEST_PLAY)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (self->event) {
|
if (self->event) {
|
||||||
if (quiet)
|
|
||||||
lfb_event_set_feedback_profile (self->event, "quiet");
|
|
||||||
|
|
||||||
g_clear_object (&self->cancel_ring);
|
g_clear_object (&self->cancel_ring);
|
||||||
self->cancel_ring = g_cancellable_new ();
|
self->cancel_ring = g_cancellable_new ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue