[calls] ringer: Make sure to reset feedback profile if not set to "quiet"
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] ringer: Make sure to reset feedback profile if not set to "quiet"
- Date: Sun, 5 Dec 2021 09:38:57 +0000 (UTC)
commit 9fff41fd535db17295366a3113a187edb7b9a53f
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Thu Oct 28 16:43:42 2021 +0200
ringer: Make sure to reset feedback profile if not set to "quiet"
src/calls-ringer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/calls-ringer.c b/src/calls-ringer.c
index a6f31df1..0628b1e2 100644
--- a/src/calls-ringer.c
+++ b/src/calls-ringer.c
@@ -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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]