mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Hosts] Handle hidden hosts file (#34308)
* handle hidden hosts file * don't remove hidden attribute
This commit is contained in:
committed by
GitHub
parent
1cbf512ed0
commit
9af757f5ce
@@ -283,7 +283,7 @@ namespace HostsUILib.ViewModels
|
||||
[RelayCommand]
|
||||
public void OverwriteHosts()
|
||||
{
|
||||
_hostsService.RemoveReadOnly();
|
||||
_hostsService.RemoveReadOnlyAttribute();
|
||||
_ = Task.Run(SaveAsync);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user