mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[QuickAccent]Add option to not activate when in game mode (#30983)
* [Quick Accent] Do not activate on game mode * Fix XAML styling * Fix idl syntax error * [Quick Accent] Fix game mode options not working
This commit is contained in:
@@ -56,6 +56,9 @@ public class SettingsService
|
||||
ActivationKey = settings.Properties.ActivationKey;
|
||||
_keyboardListener.UpdateActivationKey((int)ActivationKey);
|
||||
|
||||
DoNotActivateOnGameMode = settings.Properties.DoNotActivateOnGameMode;
|
||||
_keyboardListener.UpdateDoNotActivateOnGameMode(DoNotActivateOnGameMode);
|
||||
|
||||
InputTime = settings.Properties.InputTime.Value;
|
||||
_keyboardListener.UpdateInputTime(InputTime);
|
||||
|
||||
@@ -123,6 +126,21 @@ public class SettingsService
|
||||
}
|
||||
}
|
||||
|
||||
private bool _doNotActivateOnGameMode = true;
|
||||
|
||||
public bool DoNotActivateOnGameMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return _doNotActivateOnGameMode;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_doNotActivateOnGameMode = value;
|
||||
}
|
||||
}
|
||||
|
||||
private Position _position = Position.Top;
|
||||
|
||||
public Position Position
|
||||
|
||||
Reference in New Issue
Block a user