ENV: / ENVARC: handling for prefs
Posted: Sun Feb 16, 2014 10:16 am
I'm in the process of writing a prefs program. As it should be I want to implement the "last saved / used" and that's where the problem starts.
It's not possible with GetVar() to access the ENVARC: content if there is one in ENV:, so for "last saved" I have to go back to the filesystem approach.
As the main and the prefs are to separate programs, it's not possible to first do a DeleteVar() and then a GetVar() again in the prefs because that would trigger the notification in the main program.
Possible solution: Also support the flag GVF_SAVE_VAR in GetVar().
It's not possible with GetVar() to access the ENVARC: content if there is one in ENV:, so for "last saved" I have to go back to the filesystem approach.
As the main and the prefs are to separate programs, it's not possible to first do a DeleteVar() and then a GetVar() again in the prefs because that would trigger the notification in the main program.
Possible solution: Also support the flag GVF_SAVE_VAR in GetVar().