Author Topic: Extend Recent projects list?  (Read 3757 times)

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Extend Recent projects list?
« on: May 05, 2011, 06:33:46 pm »
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?

Offline virtuosonic

  • Multiple posting newcomer
  • *
  • Posts: 18
    • virtuosonic at sf_net
Re: Extend Recent projects list?
« Reply #1 on: May 07, 2011, 09:02:39 am »
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);

to:

Code
m_pProjectsHistory = new wxFileHistory(25, wxID_CBFILE17);

but maybe there can be problem with duplicated id's
that would require more hacks, but it's easy
language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Extend Recent projects list?
« Reply #2 on: May 07, 2011, 09:35:45 am »
change
Code
m_pProjectsHistory = new wxFileHistory(16, wxID_CBFILE17);
to:
Code
m_pProjectsHistory = new wxFileHistory(25, wxID_CBFILE17);
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline virtuosonic

  • Multiple posting newcomer
  • *
  • Posts: 18
    • virtuosonic at sf_net
Re: Extend Recent projects list?
« Reply #3 on: May 07, 2011, 10:36:04 am »
no i didn't mean making it an option, that would be hard
language:C++, jesusonic
libraries:WX, Stk, Vst
virtuosonic at sf_net

Offline Newbie0815

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: Extend Recent projects list?
« Reply #4 on: May 07, 2011, 07:09:36 pm »
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.