<div>Answering on the phone.</div><div><br></div><div>Robert, the difference on the preferences for deco mode is what you described - one is for the planner and other is for the display. I tougth id fixed the issue you described to me in your house - and I think I did, but in the end I created another issue. The getter idea seems correct, sorry for the confusion.</div><div><br></div><div>Btw - sync and load are being called because your preferences are saved and restored :)</div><div><br><div class="gmail_quote"><div>On Thu, 5 Jan 2017 at 19:32, Dirk Hohndel <<a href="mailto:dirk@hohndel.org">dirk@hohndel.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Jan 5, 2017, at 8:00 AM, Robert Helling <<a href="mailto:helling@atdotde.de" class="gmail_msg" target="_blank">helling@atdotde.de</a>> wrote:</div><br class="m_-5490516092283296683Apple-interchange-newline gmail_msg"><div class="gmail_msg"><div style="word-wrap:break-word" class="gmail_msg">Hi,<div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On 05 Jan 2017, at 16:48, Robert Helling <<a href="mailto:helling@atdotde.de" class="gmail_msg" target="_blank">helling@atdotde.de</a>> wrote:</div><br class="m_-5490516092283296683Apple-interchange-newline gmail_msg"><div class="gmail_msg"><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class="gmail_msg">or to be more specific: It seems to me that SettingsObjectWrapper::sync() never gets called. And the reason for that might be that there is no call for it anywhere in the codeā€¦</div><br class="m_-5490516092283296683Apple-interchange-newline gmail_msg"></div></blockquote></div><br class="gmail_msg"></div><div class="gmail_msg">and there is another problem: There seems to be a total confusion between</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">prefs.deco_mode</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">and</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">prefs.display_deco_mode.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">The current state is utter non-sense. Tomas, (according to git blame you introduced the latter) could you please explain the meaning of the two and in particular their difference?</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Here is my guess: There are two, because one is set in the preferences while the other is a planner parameter. They do the same thing but when chaining the value in the planner, the display of logged dives should not be affected.</div></div></div></blockquote><div class="gmail_msg"><br class="gmail_msg"></div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">Yes, that was indeed the logic.</div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg"><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">So my suggestion would be to resolve this as follows: Rename deco_mode to planner_deco_mode. In all the code, when we need to inquire the current deco mode, we replace the access to the value by a getter that essentially does</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">currentState == PLAN ? prefs.planner_deco_mode : prefs.display_deco_mode;</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">What do you think?</div></div></div></blockquote><br class="gmail_msg"></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">I think this makes sense.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">/D</div><br class="gmail_msg"></div><br><br><br><br><p class="gmail_msg"></p><br><br><br><br>-- <br class="gmail_msg"><br><br>You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.<br class="gmail_msg"><br><br>To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:subsurface-divelog+unsubscribe@googlegroups.com" class="gmail_msg" target="_blank">subsurface-divelog+unsubscribe@googlegroups.com</a>.<br class="gmail_msg"><br><br>To post to this group, send email to <a href="mailto:subsurface-divelog@googlegroups.com" class="gmail_msg" target="_blank">subsurface-divelog@googlegroups.com</a>.<br class="gmail_msg"><br><br>To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/subsurface-divelog/57EF1A4A-0883-4475-9E84-0618CA72EBAF%40hohndel.org?utm_medium=email&utm_source=footer" class="gmail_msg" target="_blank">https://groups.google.com/d/msgid/subsurface-divelog/57EF1A4A-0883-4475-9E84-0618CA72EBAF%40hohndel.org</a>.<br class="gmail_msg"><br><br>For more options, visit <a href="https://groups.google.com/d/optout" class="gmail_msg" target="_blank">https://groups.google.com/d/optout</a>.<br class="gmail_msg"><br><br></blockquote></div></div>