Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rfirma-app/src-tauri/src/identity/application/readers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn watches_the_readers(platform: Platform, channel: Channel) -> bool {
match platform {
Platform::Linux => matches!(channel, Channel::Native | Channel::Flatpak),
Platform::Windows => channel == Channel::Windows,
Platform::MacOs => channel == Channel::Native,
Platform::MacOs => false,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,14 @@ fn with_no_full_listing_yet_every_store_is_opened() {
}

#[test]
fn the_readers_are_watched_on_linux_windows_and_macos() {
fn the_readers_are_watched_on_linux_and_windows_and_not_on_macos() {
use crate::desktop::domain::channel::Channel;
use crate::desktop::domain::platform::Platform;

assert!(watches_the_readers(Platform::Linux, Channel::Native));
assert!(watches_the_readers(Platform::Linux, Channel::Flatpak));
assert!(watches_the_readers(Platform::Windows, Channel::Windows));
assert!(watches_the_readers(Platform::MacOs, Channel::Native));
assert!(!watches_the_readers(Platform::MacOs, Channel::Native));
}

const CARD_KSP: &str = "Microsoft Smart Card Key Storage Provider";
Expand Down
Loading