41
Using Code::Blocks / Re: Hiccups while typing (continuation)
« Last post by ollydbg on February 06, 2025, 03:09:40 am »Quote
Any change made while no project is active gets written to .conf
I agree, this include the m_Options and the m_BrowserOptions.
Quote
When a project is loaded nothing has changed in .conf, so no write options need to be done.
I agree.
Quote
If changes are made to settings (OnApply is entered), the active parser that made the changes is recorded by OnApply().
Those changes are then written to the .conf, and only the settings made by that active project are written to the .conf.
all other projects read those settings.
I agree that the writing of m_Options to the configure file should only happens inside the OnApply() function.
When user tweak the Class browser GUI options, it should always to saved to configure file.
But, I think the last sentence ("all other projects read those settings") is not correct. When we switch the Parser, the other Parser should read the m_BrowserOptions, because this is a global setting.
But we don't need to "re-read" the m_Options from the configure file, because different Parsers may have different parsing options.
Quote
If no user setting are made via settings, no need to care about writing the .conf.I agree.