ini-parser icon indicating copy to clipboard operation
ini-parser copied to clipboard

Feature request: Dirty property to detect changes since loading the ini file

Open jbennink opened this issue 5 years ago • 0 comments

Feature request

A property "Dirty" to signal that changes have been made to the loaded ini settings. This property could be used to optimize the Save/WriteFile methods but is also very useful to detect whether my program has to refresh things.

Background

In my case I am using ini parser to configure an external program (softphone) with specific extension and account settings and need to know whether changes have been made which require a restart of the softphone before proceeding. I started settings individual options but am using the Merge(string) method to customize the settings further. This template does not know which settings are being modified so there is now way for me to check whether things have changed other than perhaps calculating a checksum before and after. A Dirty flag would make this much easier.

P.S. Not sure whether feature/change requests should be posted as Issue so feel free to respond or close.

jbennink avatar Jul 10 '19 12:07 jbennink