cleanup(bluetooth): remove some dbg! statements & fix typos
This commit is contained in:
parent
5c725dd7a1
commit
cac438a786
3 changed files with 26 additions and 26 deletions
|
|
@ -1,12 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Name=Cosmic Applet Network
|
||||
Comment=Write a GTK + Rust application
|
||||
Name=Cosmic Applet Bluetooth
|
||||
Comment=COSMIC Panel Applet for managing bluetooth
|
||||
Type=Application
|
||||
Exec=cosmic-applet-bluetooth
|
||||
Terminal=false
|
||||
Categories=GNOME;GTK;
|
||||
Keywords=Gnome;GTK;
|
||||
Categories=COSMIC;Iced;
|
||||
Keywords=COSMIC;Iced;
|
||||
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
|
||||
Icon=com.system76.CosmicAppletNetwork.svg
|
||||
Icon=com.system76.CosmicAppletBluetooth.svg
|
||||
StartupNotify=true
|
||||
NoDisplay=true
|
||||
|
|
|
|||
|
|
@ -165,44 +165,44 @@ impl Application for CosmicBluetoothApplet {
|
|||
}
|
||||
// TODO handle agent events
|
||||
BluerEvent::AgentEvent(event) => match event {
|
||||
crate::bluetooth::BluerAgentEvent::DisplayPinCode(d, code) => {
|
||||
dbg!((d.name, code));
|
||||
crate::bluetooth::BluerAgentEvent::DisplayPinCode(_d, _code) => {
|
||||
// dbg!((d.name, code));
|
||||
}
|
||||
crate::bluetooth::BluerAgentEvent::DisplayPasskey(d, code) => {
|
||||
dbg!((d.name, code));
|
||||
crate::bluetooth::BluerAgentEvent::DisplayPasskey(_d, _code) => {
|
||||
// dbg!((d.name, code));
|
||||
}
|
||||
crate::bluetooth::BluerAgentEvent::RequestPinCode(d) => {
|
||||
crate::bluetooth::BluerAgentEvent::RequestPinCode(_d) => {
|
||||
// TODO anything to be done here?
|
||||
dbg!("request pin code", d.name);
|
||||
// dbg!("request pin code", d.name);
|
||||
}
|
||||
crate::bluetooth::BluerAgentEvent::RequestPasskey(d) => {
|
||||
crate::bluetooth::BluerAgentEvent::RequestPasskey(_d) => {
|
||||
// TODO anything to be done here?
|
||||
dbg!("request passkey", d.name);
|
||||
// dbg!("request passkey", d.name);
|
||||
}
|
||||
crate::bluetooth::BluerAgentEvent::RequestConfirmation(d, code, tx) => {
|
||||
dbg!("request confirmation", &d.name, &code);
|
||||
// dbg!("request confirmation", &d.name, &code);
|
||||
self.request_confirmation.replace((d, code, tx));
|
||||
// let _ = tx.send(false);
|
||||
}
|
||||
crate::bluetooth::BluerAgentEvent::RequestDeviceAuthorization(d, _tx) => {
|
||||
crate::bluetooth::BluerAgentEvent::RequestDeviceAuthorization(_d, _tx) => {
|
||||
// TODO anything to be done here?
|
||||
dbg!("request device authorization", d.name);
|
||||
// dbg!("request device authorization", d.name);
|
||||
// let_ = tx.send(false);
|
||||
}
|
||||
crate::bluetooth::BluerAgentEvent::RequestServiceAuthorization(
|
||||
d,
|
||||
service,
|
||||
_d,
|
||||
_service,
|
||||
_tx,
|
||||
) => {
|
||||
// my headphones seem to always request this
|
||||
// doesn't seem to be defined in the UX mockups
|
||||
dbg!(
|
||||
"request service authorization",
|
||||
d.name,
|
||||
bluer::id::Service::try_from(service)
|
||||
.map(|s| s.to_string())
|
||||
.unwrap_or_else(|_| "unknown".to_string())
|
||||
);
|
||||
// dbg!(
|
||||
// "request service authorization",
|
||||
// d.name,
|
||||
// bluer::id::Service::try_from(service)
|
||||
// .map(|s| s.to_string())
|
||||
// .unwrap_or_else(|_| "unknown".to_string())
|
||||
// );
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
pub const APP_ID: &str = "com.system76.CosmicAppletNetwork";
|
||||
pub const APP_ID: &str = "com.system76.CosmicAppletBluetooth";
|
||||
pub const PROFILE: &str = "";
|
||||
pub const VERSION: &str = "0.1.0";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue