PowerAccent-21531: support excluded apps (#22004)

This commit is contained in:
Taras
2022-11-15 14:47:52 +02:00
committed by GitHub
parent b482188782
commit a357d62ff5
8 changed files with 145 additions and 14 deletions

View File

@@ -90,6 +90,8 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
_inputTimeMs = _powerAccentSettings.Properties.InputTime.Value;
_excludedApps = _powerAccentSettings.Properties.ExcludedApps.Value;
_selectedLangIndex = Array.IndexOf(_languageOptions, _powerAccentSettings.Properties.SelectedLang.Value);
_toolbarPositionIndex = Array.IndexOf(_toolbarOptions, _powerAccentSettings.Properties.ToolbarPosition.Value);
@@ -165,6 +167,27 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
private string _excludedApps;
public string ExcludedApps
{
get
{
return _excludedApps;
}
set
{
if (value != _excludedApps)
{
_excludedApps = value;
_powerAccentSettings.Properties.ExcludedApps.Value = value;
OnPropertyChanged(nameof(ExcludedApps));
RaisePropertyChanged();
}
}
}
private int _toolbarPositionIndex;
public int ToolbarPositionIndex