User forums > General (but related to Code::Blocks)

Extend Recent projects list?

(1/1)

Newbie0815:
The list of "recent projects" on the "start here" page, as well as in the file menu keeps the last 16 opened projects, once it exceeds 16, it "forgets" the oldest entries.
Of course one can still open older projects through "file - open...", but I´m wondering, is there a way to make the list longer, so it will show for example the last 25?

virtuosonic:
hi, the value is hardcoded, you would have to modify to do this, on file "src/main.cpp" line 2148

change


--- Code: ---m_pProjectsHistory = new wxFileHistory(16, wxID_CBFILE17);
--- End code ---

to:


--- Code: ---m_pProjectsHistory = new wxFileHistory(25, wxID_CBFILE17);
--- End code ---

but maybe there can be problem with duplicated id's
that would require more hacks, but it's easy

MortenMacFly:

--- Quote from: virtuosonic on May 07, 2011, 09:02:39 am ---change

--- Code: ---m_pProjectsHistory = new wxFileHistory(16, wxID_CBFILE17);
--- End code ---
to:

--- Code: ---m_pProjectsHistory = new wxFileHistory(25, wxID_CBFILE17);
--- End code ---

--- End quote ---
This is not enough and will not work. Instead, look in the SVN log. recently I've increased the number from 8 to 16. Looking at the diff will make you see what needs to be done.

BTW: Making this an option is not an easy thing! Otherwise we had done so.

virtuosonic:
no i didn't mean making it an option, that would be hard

Newbie0815:
Thanks for the answers, I already thought it might be hard to do, just wanted to ask anyway.
Meanwhile I found a workaround solution, a folder on the desktop containing links to the projects I need.

Navigation

[0] Message Index

Go to full version