From 7ab5d7069d1d85300cdfaf69da5de4d28de25439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20G=C3=B3mez?= Date: Mon, 19 Oct 2026 19:03:46 +0200 Subject: [PATCH] =?UTF-8?q?fix(identity):=20en=20macOS=20no=20se=20vigilan?= =?UTF-8?q?=20los=20lectores=20ni=20aparece=20su=20l=C3=ADnea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements #2044: En macOS no se muestra la lĂ­nea del lector mientras no se lean tarjetas - ID-555: watches_the_readers devuelve false en macOS; el vigilante queda para #2043 --- rfirma-app/src-tauri/src/identity/application/readers.rs | 2 +- .../src-tauri/src/identity/application/readers/tests.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rfirma-app/src-tauri/src/identity/application/readers.rs b/rfirma-app/src-tauri/src/identity/application/readers.rs index 0f572350..f8dee499 100644 --- a/rfirma-app/src-tauri/src/identity/application/readers.rs +++ b/rfirma-app/src-tauri/src/identity/application/readers.rs @@ -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, } } diff --git a/rfirma-app/src-tauri/src/identity/application/readers/tests.rs b/rfirma-app/src-tauri/src/identity/application/readers/tests.rs index fff98724..31e6b5d8 100644 --- a/rfirma-app/src-tauri/src/identity/application/readers/tests.rs +++ b/rfirma-app/src-tauri/src/identity/application/readers/tests.rs @@ -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";