mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-08 14:42:02 +02:00
chore: Fix spelling mistake
This commit is contained in:
parent
bca769b180
commit
ccf32a7d58
|
@ -173,7 +173,7 @@ fn bluetooth_enabled_switch_handler(
|
|||
glib::Propagation::Proceed
|
||||
}
|
||||
|
||||
pub fn populate_conntected_bluetooth_devices(bluetooth_box: Arc<BluetoothBox>) {
|
||||
pub fn populate_connected_bluetooth_devices(bluetooth_box: Arc<BluetoothBox>) {
|
||||
// TODO handle saved devices -> they also exist
|
||||
gio::spawn_blocking(move || {
|
||||
let ref_box = bluetooth_box.clone();
|
||||
|
|
|
@ -144,9 +144,7 @@ pub fn sink_removed_handler(sink_box: Arc<SinkBox>, ir: SinkRemoved) -> bool {
|
|||
return;
|
||||
}
|
||||
}
|
||||
sink_box_imp
|
||||
.reset_sinks
|
||||
.remove(&*entry.clone().unwrap().0);
|
||||
sink_box_imp.reset_sinks.remove(&*entry.clone().unwrap().0);
|
||||
let alias = entry.unwrap().2;
|
||||
let mut index = sink_box_imp.reset_model_index.write().unwrap();
|
||||
let model_list = sink_box_imp.reset_model_list.write().unwrap();
|
||||
|
@ -249,9 +247,7 @@ pub fn input_stream_removed_handler(sink_box: Arc<SinkBox>, ir: InputStreamRemov
|
|||
if entry.is_none() {
|
||||
return;
|
||||
}
|
||||
sink_box_imp
|
||||
.reset_input_streams
|
||||
.remove(&*entry.unwrap().0);
|
||||
sink_box_imp.reset_input_streams.remove(&*entry.unwrap().0);
|
||||
});
|
||||
});
|
||||
true
|
||||
|
|
|
@ -8,7 +8,7 @@ use std::sync::Arc;
|
|||
use crate::components::base::setting_box::SettingBox;
|
||||
use crate::components::base::utils::{start_audio_listener, Listeners, Position};
|
||||
use crate::components::bluetooth::bluetooth_box::{
|
||||
populate_conntected_bluetooth_devices, start_bluetooth_listener, BluetoothBox,
|
||||
populate_connected_bluetooth_devices, start_bluetooth_listener, BluetoothBox,
|
||||
};
|
||||
use crate::components::input::source_box::{populate_sources, SourceBox};
|
||||
use crate::components::output::sink_box::{populate_sinks, SinkBox};
|
||||
|
@ -29,7 +29,7 @@ pub const HANDLE_CONNECTIVITY_CLICK: fn(Arc<Listeners>, FlowBox, Rc<RefCell<Posi
|
|||
scan_for_wifi(wifi_box.clone());
|
||||
let wifi_frame = wrap_in_flow_box_child(SettingBox::new(&*wifi_box));
|
||||
let bluetooth_box = BluetoothBox::new(listeners.clone());
|
||||
populate_conntected_bluetooth_devices(bluetooth_box.clone());
|
||||
populate_connected_bluetooth_devices(bluetooth_box.clone());
|
||||
start_bluetooth_listener(listeners, bluetooth_box.clone());
|
||||
let bluetooth_frame = wrap_in_flow_box_child(SettingBox::new(&*bluetooth_box));
|
||||
reset_main.remove_all();
|
||||
|
@ -60,7 +60,7 @@ pub const HANDLE_BLUETOOTH_CLICK: fn(Arc<Listeners>, FlowBox, Rc<RefCell<Positio
|
|||
}
|
||||
let bluetooth_box = BluetoothBox::new(listeners.clone());
|
||||
start_bluetooth_listener(listeners, bluetooth_box.clone());
|
||||
populate_conntected_bluetooth_devices(bluetooth_box.clone());
|
||||
populate_connected_bluetooth_devices(bluetooth_box.clone());
|
||||
let bluetooth_frame = wrap_in_flow_box_child(SettingBox::new(&*bluetooth_box));
|
||||
reset_main.remove_all();
|
||||
reset_main.insert(&bluetooth_frame, -1);
|
||||
|
|
Loading…
Reference in a new issue