Getting new settings to save?

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
Naga
Posts: 45
Joined: 2003-12-02 11:24
Location: Sweden

Getting new settings to save?

Post by Naga » 2004-05-19 06:27

Hi,

I'm trying to add a new setting to DC++ (an option to log the status messages that appear at the bottom of the HubFrame), the code works except for one thing, the status of the setting isn't saved (in DCplusplus.xml) so I have to set the checkbox every time I open DC++. Any help to enable me to fix this would be appreciated.

Diff here http://hem.bredband.net/b233022/DCplusplus_log_status_messages.diff
Thanks to all open source programmers!
They enable the rest of us to learn a lot!

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2004-05-19 06:46

you need to edit advance2page.cpp and update the
void Advanced2Page::write() function.

Naga
Posts: 45
Joined: 2003-12-02 11:24
Location: Sweden

Post by Naga » 2004-05-19 07:02

Thanks for the tip!
Not exactly right but it got me to the right place. I had to add one line to (in Advanced2Page.cpp)
PropPage::TextItem Advanced2Page::texts[] = {...}
and one to
PropPage::Item Advanced2Page::items[] = {...}
then it worked like a charm.
Thanks to all open source programmers!
They enable the rest of us to learn a lot!

Locked