What is the common practice to save settings in Windows Desktop applications with config file? Is it acceptable to change settings only in run-time, but in file optionally? If Yes, how to provide this option to user? (details below)
I am developing old-style Windows Desktop Application in Delphi 7. Application has several settings parameters used in run-time. Application has a settings dialog windows, parameters initially are loaded from configuration (XML) file, and cached in memory.
Originally there was possibility to change parameters only for current run-time session. Later I received requirement to allow to user possibility to save "somehow" optionally/explicitly changes to config file too.
I implemented in next way: When user performs changes and then click OK Button other dialog is opened, asking if it want to change settings in file too.. (similar like in Windows Explorer, folder properties, read-only flag, another dialog is opened to ask if apply to sub-folders)
Is there a better.. or RIGHT/correct way to implement such logic?