Closed benwaffle closed 10 years ago
@nyanpasu I-I'm already working on that on my ui-fixes branch...
Idk about C++, but use something like Optional in Java
Then we can do Settings::get("#-col-width").orElse(20)
which should return the setting or 20 if it has not be set yet
w, our Settings.cpp does that. You just need to set up #-col-width"
first.
Could you work directly on @fuyukaidesu's branch? She probably already worked on part of it.
I really was just about doing it, I just made a few ui fixes on my branch, and planned to do this right now. Basically a setting for each columns, if it's enabled, and their width. I just don't really like how this will add 2 lines per column in the config file.
I'll push my last changes on my branch.
I think it shouldn't go into the config file. I doubt anyone actually cares enough to set up the default widths of their columns. In any case, it's probably more appropriate to implement it as part of session data.
My suggestion would be to retrieve the last used widths of columns when gtorrent last closed gracefully.
(I mean if you're going to make the program use default widths, might as well make it do it properly the first time.)