mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-12-15 10:01:39 +01:00
feat: Add all audio events
This commit is contained in:
parent
a84c71d9e1
commit
6ad3f07cf3
13 changed files with 785 additions and 345 deletions
|
|
@ -24,7 +24,6 @@ impl SourceEntry {
|
|||
pub fn new(is_default: bool, check_group: Arc<CheckButton>, stream: Source) -> Self {
|
||||
let obj: Self = Object::builder().build();
|
||||
// TODO use event callback for progress bar -> this is the "im speaking" indicator
|
||||
// TODO handle events
|
||||
{
|
||||
let imp = obj.imp();
|
||||
imp.resetSourceName.set_text(stream.alias.clone().as_str());
|
||||
|
|
@ -38,7 +37,6 @@ impl SourceEntry {
|
|||
imp.resetVolumeSlider.connect_change_value(
|
||||
clone!(@weak imp => @default-return Propagation::Stop, move |_, _, value| {
|
||||
let fraction = (value / 655.36).round();
|
||||
println!("{fraction}");
|
||||
let percentage = (fraction).to_string() + "%";
|
||||
imp.resetVolumePercentage.set_text(&percentage);
|
||||
let source = imp.stream.borrow();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue