1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-23 03:22:50 +02:00

[PM-2718] Set nspasteboard.ConcealedType for clipboard on MacOS (#11025)

Enables the use of `exclude_from_clipboard` for macos, introduced in recent version of arboard
This commit is contained in:
Oscar Hinton 2024-09-16 15:16:28 +02:00 committed by GitHub
parent 74ee0315c0
commit 20d83ab198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,14 @@ fn clipboard_set(set: Set, _password: bool) -> Set {
}
#[cfg(target_os = "macos")]
fn clipboard_set(set: Set, _password: bool) -> Set {
fn clipboard_set(set: Set, password: bool) -> Set {
use arboard::SetExtApple;
if password {
set.exclude_from_history()
} else {
set
}
}
#[cfg(test)]