<div dir="ltr">Hi Dan,<div><br></div><div>And again, thanks,</div><div>Indeed the exception is a good way to get the user's attention,</div><div>I submitted a new patch, using exceptions and checking the actual settings value (not based on order).</div><div><br></div><div>Ran</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 12, 2022 at 5:34 PM Dan Smith via chirp_devel <<a href="mailto:chirp_devel@intrepid.danplanet.com">chirp_devel@intrepid.danplanet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">> Ideally I would like to reject it at the user (UI) level - is it possible to have co-dependent setting values, i.e. keypad lock has 2 possible values ("locked", "unlocked") if rx_mode is "normal" (not DW) and only "unlocked" if rx mode is not "normal", and similarly for rx_mode ("normal", "cross mode" and "DualWatch" when keypad is unlocked and only"normal" when teh keypad is locked)?<br>
<br>
Well, like I say, if you're setting the dual-watch setting to on, you can raise an exception. So, if that setting is being set on, quickly check the keypad lock thing and raise if it's on. Same for the other - don't let the keypad lock be set if dual-watch is enabled. That has the same effect as tying them together in the UI, right?<br>
<br>
If I'm misremembering how well that would work, then I'd say we just need to not obsess over that level of detail. Keeping the UI driver-independent is important and, of course, not all things can be represented in an abstraction.<br>
<br>
--Dan<br>
_______________________________________________<br>
chirp_devel mailing list<br>
<a href="mailto:chirp_devel@intrepid.danplanet.com" target="_blank">chirp_devel@intrepid.danplanet.com</a><br>
<a href="http://intrepid.danplanet.com/mailman/listinfo/chirp_devel" rel="noreferrer" target="_blank">http://intrepid.danplanet.com/mailman/listinfo/chirp_devel</a><br>
Developer docs: <a href="http://chirp.danplanet.com/projects/chirp/wiki/Developers" rel="noreferrer" target="_blank">http://chirp.danplanet.com/projects/chirp/wiki/Developers</a><br>
</blockquote></div>