Closed pllim closed 9 years ago
Hi @pllim. I've clarified the order of inheritance of this setting in commit f77a20154347af3bb51676d552726a74045d3453.
The channel_*.cfg
files are saved whenever someone presses "Save Settings" in a Preferences plugin (which is a local plugin, meaning settings are saved on a per-channel basis). Since this particular preference will be inherited from general.cfg
, I would leave your setting in that file. Even if you remove it from the channel_Image.cfg
file, it will show up there the next time (if ever) you press "Save Settings".
So, if numImages
is different in both, Ginga will use the value from general.cfg
and ignore the one in channel_Image.cfg
? I illustrate the scenario below:
~/username/.ginga/
channel_Image.cfg (numImages = 10)
general.cfg (numImages = 1)
No, sorry if I wasn't clear. If there is a value in channel_Image.cfg
it will be used in before that in general.cfg
. But if the value is already in general.cfg
it will be inherited to channel_Image.cfg
the first time the user does a "Save Settings" when editing the Preferences for the Image channel. Therefore to my thinking it's better to have the initial setting in general.cfg
.
Ah, okay. Thank you for the clarification.
I see
numImages
repeated in both mychannel_Image.cfg
andgeneral.cfg
. Are they the same thing? Can I just keep it ingeneral.cfg
and remove it fromchannel_Image.cfg
? Thanks.