mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00: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:
@@ -37,8 +37,14 @@ fn clipboard_set(set: Set, _password: bool) -> Set {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
fn clipboard_set(set: Set, _password: bool) -> Set {
|
fn clipboard_set(set: Set, password: bool) -> Set {
|
||||||
set
|
use arboard::SetExtApple;
|
||||||
|
|
||||||
|
if password {
|
||||||
|
set.exclude_from_history()
|
||||||
|
} else {
|
||||||
|
set
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|||||||
Reference in New Issue
Block a user