Skip to content

Commit

Permalink
chore: typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 10, 2024
1 parent f92cf61 commit fee19a4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lala_bar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ iced = { version = "0.12", features = [
] }
#iced_native = "0.12"
iced_runtime = "0.12"
iced_layershell = { git = "https://github.com/waycrate/exwlshelleventloop", package = "iced_layershell" }
iced_layershell = { git = "https://github.com/waycrate/exwlshelleventloop", package = "iced_layershell", branch = "evdirectlyremoveshell" }
tokio = { version = "1.39", features = ["full"] }
iced_futures = "0.12.0"
env_logger = "0.11.5"
Expand Down
20 changes: 10 additions & 10 deletions lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum LaLaInfo {

#[derive(Debug, Clone)]
struct NotifyUnitWidgetInfo {
uper: i32,
upper: i32,
counter: usize,
unit: NotifyUnit,
}
Expand Down Expand Up @@ -338,7 +338,7 @@ impl LalaMusicBar {
for (_, unit) in self.notifications.iter_mut() {
if unit.counter > counter {
unit.counter -= 1;
unit.uper -= 75;
unit.upper -= 75;
}
}
}
Expand Down Expand Up @@ -393,7 +393,7 @@ impl MultiApplication for LalaMusicBar {
.entry(id)
.or_insert(NotifyUnitWidgetInfo {
counter: 0,
uper: 10,
upper: 10,
unit: nofify,
});
}
Expand Down Expand Up @@ -527,11 +527,11 @@ impl MultiApplication for LalaMusicBar {
Message::Notify(NotifyMessage::UnitAdd(notify)) => {
let mut commands = vec![];
for (id, unit) in self.notifications.iter_mut() {
unit.uper += 75;
unit.upper += 75;
commands.push(Command::single(
LaLaShellIdAction::new(
*id,
LalaShellAction::MarginChange((unit.uper, 10, 10, 10)),
LalaShellAction::MarginChange((unit.upper, 10, 10, 10)),
)
.into(),
));
Expand Down Expand Up @@ -582,7 +582,7 @@ impl MultiApplication for LalaMusicBar {
commands.push(Command::single(
LaLaShellIdAction::new(
*id,
LalaShellAction::MarginChange((unit.uper, 10, 10, 10)),
LalaShellAction::MarginChange((unit.upper, 10, 10, 10)),
)
.into(),
));
Expand All @@ -597,18 +597,18 @@ impl MultiApplication for LalaMusicBar {
.notifications
.iter()
.find(|(oid, _)| **oid == id)
.map(|(_, info)| info.uper)
.map(|(_, info)| info.upper)
.unwrap_or(0);

let mut commands = vec![];
for (id, unit) in self.notifications.iter_mut() {
if unit.uper > removed_pos {
unit.uper -= 75;
if unit.upper > removed_pos {
unit.upper -= 75;
}
commands.push(Command::single(
LaLaShellIdAction::new(
*id,
LalaShellAction::MarginChange((unit.uper, 10, 10, 10)),
LalaShellAction::MarginChange((unit.upper, 10, 10, 10)),
)
.into(),
));
Expand Down
8 changes: 4 additions & 4 deletions notification_iced/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub struct VersionInfo {

#[derive(Debug)]
pub struct LaLaMako<T: From<NotifyMessage> + Send> {
capablities: Vec<String>,
capabilities: Vec<String>,
sender: Sender<T>,
version: VersionInfo,
}
Expand All @@ -86,7 +86,7 @@ impl<T: From<NotifyMessage> + Send + 'static> LaLaMako<T> {

/// GetCapabilities method
fn get_capabilities(&self) -> Vec<String> {
self.capablities.clone()
self.capabilities.clone()
}

/// GetServerInformation method
Expand Down Expand Up @@ -155,7 +155,7 @@ impl<T: From<NotifyMessage> + Send + 'static> LaLaMako<T> {

pub async fn start_server<T: From<NotifyMessage> + Send + 'static>(
sender: Sender<T>,
capablities: Vec<String>,
capabilities: Vec<String>,
version: VersionInfo,
) -> Never {
let _conn = async {
Expand All @@ -165,7 +165,7 @@ pub async fn start_server<T: From<NotifyMessage> + Send + 'static>(
"/org/freedesktop/Notifications",
LaLaMako {
sender,
capablities,
capabilities,
version,
},
)?
Expand Down

0 comments on commit fee19a4

Please sign in to comment.