mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-23 23:20:05 +01:00
[Hosts]Add setting to select the file encoding (#26495)
This commit is contained in:
committed by
GitHub
parent
177c58f494
commit
9960d2d536
@@ -109,7 +109,20 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
{
|
||||
if (value != (int)Settings.Properties.AdditionalLinesPosition)
|
||||
{
|
||||
Settings.Properties.AdditionalLinesPosition = (AdditionalLinesPosition)value;
|
||||
Settings.Properties.AdditionalLinesPosition = (HostsAdditionalLinesPosition)value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int Encoding
|
||||
{
|
||||
get => (int)Settings.Properties.Encoding;
|
||||
set
|
||||
{
|
||||
if (value != (int)Settings.Properties.Encoding)
|
||||
{
|
||||
Settings.Properties.Encoding = (HostsEncoding)value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user