
Can a CHIRP driver easily tell if CHIRP is in developer mode?
I'm working on a driver that will have a "sensitive" setting (one that all users probably should not have access to) and only want to expose that setting when CHIRP is in developer mode.
It looks like if the developer class is imported there is a method developer.developer_mode() that may be what I'm looking for.
Thx, Fred

Can a CHIRP driver easily tell if CHIRP is in developer mode?
Please don't, even if you figure out a sneaky way. The developer mode is a UI notion and I also don't want people enabling developer mode just to get access to extra driver features.
I'm working on a driver that will have a "sensitive" setting (one that all users probably should not have access to) and only want to expose that setting when CHIRP is in developer mode.
We have plenty of driver settings exposed that are potentially dangerous. There's a set_warning() method on RadioSetting which you can use to warn if the user changes the value, so please just use that. If it's really dangerous, then it probably shouldn't be exposed at all (even for people who click developer mode, which aren't to be confused with actual developers).
--Dan

Dan Smith wrote:
Please don't, even if you figure out a sneaky way. The developer mode is a UI notion and I also don't want people enabling developer mode just to get access to extra driver features.
Well did figure out a sneaky way to determine if the driver is running in developer mode, but I removed it...
I'm working on a driver that will have a "sensitive" setting (one that all users probably should not have access to) and only want to expose that setting when CHIRP is in developer mode.
There's a set_warning() method on RadioSetting which you can use to warn if the user changes the value, so please just use that.
--Dan
That's exactly what I was looking for. I issue a stern warning and let them continue if so heeded,
Thx, Fred
participants (2)
-
Dan Smith
-
ftt@smtcpa.com