Skip to content

Commit

Permalink
fix: Fix typos with the code that somehow crept into the pr
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Nov 4, 2024
1 parent 2f61655 commit f647ab6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ impl<T> EventLoopWindowTarget<T> {
/// - **Linux:** Only supported desktop environments with `libunity` (e.g. GNOME).
/// - **iOS / Android:** Unsupported.
#[inline]
pub fn set_badge_count(&self, _badge: Option<i64>, _desktop_filename: Option<String>) {
pub fn set_badge_count(&self, _count: Option<i64>, _desktop_filename: Option<String>) {
#[cfg(any(target_os = "linux", target_os = "macos"))]
self.p.set_bage_count(_progress, _desktop_filename)
self.p.set_badge_count(_badge, _desktop_filename)
}

/// Sets the theme for the application.
Expand Down
3 changes: 2 additions & 1 deletion src/platform_impl/linux/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl<T: 'static> EventLoop<T> {
None
};

let mut taskbar = TaskbarIndicator::new();
let taskbar = TaskbarIndicator::new();
let is_wayland = window_target.is_wayland();

// Window Request
Expand Down Expand Up @@ -442,6 +442,7 @@ impl<T: 'static> EventLoop<T> {
};
}
WindowRequest::ProgressBarState(_) => unreachable!(),
WindowRequest::BadgeCount(_, _) => unreachable!(),
WindowRequest::SetTheme(_) => unreachable!(),
WindowRequest::WireUpEvents {
transparent,
Expand Down
2 changes: 1 addition & 1 deletion src/platform_impl/macos/badge.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use cocoa::{appkit::NSApp, base::nil, foundation::NSString};

pub fn set_badge_label(&self, label: Option<String>) {
pub fn set_badge_label(label: Option<String>) {
unsafe {
let label = match label {
None => nil,
Expand Down

0 comments on commit f647ab6

Please sign in to comment.