mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-02 12:02:42 +08:00
[fix] fix Windows privacy guard and iOS host tool selection
This commit is contained in:
@@ -305,7 +305,10 @@ bool PrivacyBandGuard::Windows(std::vector<PrivacyBandWindow>& windows,
|
||||
}
|
||||
|
||||
void PrivacyBandGuard::SetLocalUnlockAllowed(bool allowed) {
|
||||
if (!shared_ || InterlockedExchange(&shared_->allow_local_unlock, allowed) == allowed) return;
|
||||
const LONG value = allowed ? 1 : 0;
|
||||
if (!shared_ ||
|
||||
InterlockedExchange(&shared_->allow_local_unlock, value) == value)
|
||||
return;
|
||||
std::vector<PrivacyBandWindow> windows;
|
||||
std::string error;
|
||||
if (Windows(windows, error))
|
||||
|
||||
Reference in New Issue
Block a user