Code Review
/
apps
/
mixer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Modify mixer to use the new pipewire audiomixer binding
[apps/mixer.git]
/
app
/
audiorole.cpp
diff --git
a/app/audiorole.cpp
b/app/audiorole.cpp
index
5fad48f
..
7351d13
100644
(file)
--- a/
app/audiorole.cpp
+++ b/
app/audiorole.cpp
@@
-37,8
+37,7
@@
void AudioRole::setValue(int value)
if (m_Value != value)
{
m_Value = value;
if (m_Value != value)
{
m_Value = value;
- if (m_Updating == 0)
- emit ValueChanged();
+ emit ValueChanged();
}
}
}
}
@@
-47,8
+46,11
@@
void AudioRole::BeginUpdate()
m_Updating++;
}
m_Updating++;
}
-
void
AudioRole::EndUpdate()
+
bool
AudioRole::EndUpdate()
{
{
- if (m_Updating > 0) m_Updating--;
- //if (m_Updating == 0) emit ValueChanged();
+ if (m_Updating > 0) {
+ m_Updating--;
+ return true;
+ }
+ return false;
}
}