Skip to content

Conversation

@BornToBeRoot
Copy link
Owner

Changes proposed in this pull request

  • Enable & disable entries in hosts file editor

Related issue(s)

Copilot generated summary

Provide a Copilot generated summary of the changes in this pull request.

Copilot summary

This pull request introduces significant enhancements to the HostsFileEditor functionality, including asynchronous methods for enabling and disabling entries, improved backup management, and integration of these features into the HostsFileEditorViewModel. The changes aim to improve reliability, maintainability, and user experience when managing the hosts file.

Enhancements to hosts file management:

  • Backup Management: Added a daily backup mechanism for the hosts file, including cleanup of old backups exceeding a configurable limit and checks to avoid redundant backups. (HostsFileEditor.cs, [1] [2]
  • Enable/Disable Entry Methods: Implemented asynchronous methods (EnableEntryAsync and DisableEntryAsync) to modify hosts file entries, with backup creation before changes and error handling for file operations. (HostsFileEditor.cs, Source/NETworkManager.Models/HostsFileEditor/HostsFileEditor.csR166-R312)

Integration into ViewModel:

To-Do

Contributing

By submitting this pull request, I confirm the following:

@mergify mergify bot merged commit 20042ef into main Jun 29, 2025
4 checks passed
@mergify mergify bot deleted the feature/hosts_edito_enable_disable branch June 29, 2025 23:08
@BornToBeRoot BornToBeRoot added this to the next-release milestone Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants