mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-09-16 22:59:16 +02:00
chore: Code cleanup
This commit is contained in:
parent
eed10e8b63
commit
e1cd11e601
21 changed files with 55 additions and 55 deletions
|
@ -5,7 +5,7 @@ use adw::glib::Object;
|
|||
use adw::prelude::{ComboRowExt, PreferencesRowExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::{Cast, clone, ObjectExt, ToValue};
|
||||
use glib::{Cast, clone, ObjectExt};
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
use gtk::{Align, gio, SignalListItemFactory, StringList, StringObject};
|
||||
use gtk::prelude::{GObjectPropertyExpressionExt, ListItemExt, WidgetExt};
|
||||
|
|
|
@ -137,7 +137,7 @@ impl dbus::message::SignalArgs for SinkRemoved {
|
|||
|
||||
impl GetVal<(u32,)> for SinkRemoved {
|
||||
fn get_value(&self) -> (u32,) {
|
||||
(self.index.clone(),)
|
||||
(self.index,)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ impl dbus::message::SignalArgs for InputStreamRemoved {
|
|||
|
||||
impl GetVal<(u32,)> for InputStreamRemoved {
|
||||
fn get_value(&self) -> (u32,) {
|
||||
(self.index.clone(),)
|
||||
(self.index,)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -299,7 +299,7 @@ impl dbus::message::SignalArgs for SourceRemoved {
|
|||
|
||||
impl GetVal<(u32,)> for SourceRemoved {
|
||||
fn get_value(&self) -> (u32,) {
|
||||
(self.index.clone(),)
|
||||
(self.index,)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -377,7 +377,7 @@ impl dbus::message::SignalArgs for OutputStreamRemoved {
|
|||
|
||||
impl GetVal<(u32,)> for OutputStreamRemoved {
|
||||
fn get_value(&self) -> (u32,) {
|
||||
(self.index.clone(),)
|
||||
(self.index,)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -387,7 +387,7 @@ pub fn start_audio_listener(
|
|||
source_box: Option<Arc<SourceBox>>,
|
||||
) {
|
||||
gio::spawn_blocking(move || {
|
||||
let mut conn = Connection::new_session().unwrap();
|
||||
let conn = Connection::new_session().unwrap();
|
||||
if listeners.pulse_listener.load(Ordering::SeqCst) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue