Bottom progress window size isnt saved on restart

Bug #217082 reported by jordys
2
Affects Status Importance Assigned to Milestone
DC++
Fix Released
Wishlist
Unassigned

Bug Description

When I resize the bottom window (on the latest DC++ on Vista) that shows the downloads, uploads etc, and make it smaller, that size is not saved on restart. This is quite annoying because it opens too big by default.

Changed in dcplusplus:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
poy (poy) wrote :

simple patch that saves the position of the main window splitter.

since that position is between 0 and 1, i multiply it by 1000 when saving it; the saved value is then divided by 1000 when being used. this offers a 3 digits precision, which is enough in my opinion.

if that method is correct, then the same should be done in other places of the program that also use splitters.

Revision history for this message
Jacek Sieka (arnetheduck) wrote :

Makes sense, or one could save the absolute position...not sure which is better, so both are fine by me. Regardless of the solution, add a winutil method to save/load it so we only have to change it in one spot if we change our minds.

Revision history for this message
poy (poy) wrote :

i've added a new category of float settings in dcpp::SettingsManager.

Changed in dcplusplus:
status: Confirmed → Fix Committed
MikeJJ (mrmikejj)
Changed in dcplusplus:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.