mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
[Peek]Create Setting to run not elevated (#26308)
* [Peek]Create Setting to run not elevated * Optionally add access permissions to the handles
This commit is contained in:
@@ -109,6 +109,20 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public bool AlwaysRunNotElevated
|
||||
{
|
||||
get => _peekSettings.Properties.AlwaysRunNotElevated.Value;
|
||||
set
|
||||
{
|
||||
if (_peekSettings.Properties.AlwaysRunNotElevated.Value != value)
|
||||
{
|
||||
_peekSettings.Properties.AlwaysRunNotElevated.Value = value;
|
||||
OnPropertyChanged(nameof(AlwaysRunNotElevated));
|
||||
NotifySettingsChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void NotifySettingsChanged()
|
||||
{
|
||||
// Using InvariantCulture as this is an IPC message
|
||||
|
||||
Reference in New Issue
Block a user