mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[QuickAccent]Add setting to sort characters by use frequency (#22847)
* [Quick Accent] add toggle switch to sort characters by usage frequency * [Quick Accent] if enabled, then sort by frequency for all toolbar triggers * [Quick Accent] add "start selection from the left" toggle switch * [Quick Accent] fix error SA1000: The keyword 'new' should not be followed by a space * Fix C# analyzer build error
This commit is contained in:
@@ -92,6 +92,8 @@ public class SettingsService
|
||||
}
|
||||
|
||||
ShowUnicodeDescription = settings.Properties.ShowUnicodeDescription;
|
||||
SortByUsageFrequency = settings.Properties.SortByUsageFrequency;
|
||||
StartSelectionFromTheLeft = settings.Properties.StartSelectionFromTheLeft;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -191,6 +193,36 @@ public class SettingsService
|
||||
_showUnicodeDescription = value;
|
||||
}
|
||||
}
|
||||
|
||||
private bool _sortByUsageFrequency;
|
||||
|
||||
public bool SortByUsageFrequency
|
||||
{
|
||||
get
|
||||
{
|
||||
return _sortByUsageFrequency;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_sortByUsageFrequency = value;
|
||||
}
|
||||
}
|
||||
|
||||
private bool _startSelectionFromTheLeft;
|
||||
|
||||
public bool StartSelectionFromTheLeft
|
||||
{
|
||||
get
|
||||
{
|
||||
return _startSelectionFromTheLeft;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_startSelectionFromTheLeft = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum Position
|
||||
|
||||
Reference in New Issue
Block a user