Store/restore pref values for drop_stone_mode, bottomsac, decosac
dirk at hohndel.org
Wed Jul 16 22:09:15 PDT 2014
On Wed, Jul 16, 2014 at 06:36:46PM -1000, Gaetan Bisson wrote:
> [2014-07-16 21:11:12 -0700] Dirk Hohndel:
> > That patch is a little selfish, isn't it? It makes your preferred values
> > the default.
> No, it's the values that were already used as defaults before, see the
> lines ui.bottomSAC->setValue() I've removed.
> My preferred values are way smaller. :P
With twins and gear in my dry suit... sadly the numbers are about right
> > I'll make you a deal - I'll take your favorite number as default, if you
> > extend the patch to store any changes from that to the settings :-)
> That sounds good but I'm not sure what you mean by "the settings".
> There's no UI for SAC in the settings. Do you suggest I should add one?
You are storing the values in preferences - but you need to add code to
store those values on disk (via QSettings).
More information about the subsurface