diff --git a/chirp/drivers/uvk5.py b/chirp/drivers/uvk5.py index d6a956ca..706fce67 100644 --- a/chirp/drivers/uvk5.py +++ b/chirp/drivers/uvk5.py @@ -684,6 +684,7 @@ def get_features(self): rf.valid_power_levels = UVK5_POWER_LEVELS rf.valid_special_chans = list(SPECIALS.keys()) rf.valid_duplexes = ["", "-", "+", "off"] + rf.valid_skips = [] # hack so we can input any frequency, # the 0.1 and 0.01 steps don't work unfortunately @@ -697,8 +698,6 @@ def get_features(self): rf.valid_modes = ["FM", "NFM", "AM", "NAM"] rf.valid_tmodes = ["", "Tone", "TSQL", "DTCS", "Cross"] - rf.valid_skips = [""] - # This radio supports memories 1-200, 201-214 are the VFO memories rf.memory_bounds = (1, 200) diff --git a/chirp/wxui/memedit.py b/chirp/wxui/memedit.py index 9744a073..fcebc0da 100644 --- a/chirp/wxui/memedit.py +++ b/chirp/wxui/memedit.py @@ -607,6 +607,12 @@ def hidden_for(self, memory): return memory.tmode != 'Cross' +class ChirpSkipColumn(ChirpChoiceColumn): + @property + def valid(self): + return self._features.valid_skips + + class ChirpCommentColumn(ChirpMemoryColumn): # This is just here so it is marked for translation __TITLE = _('Comment') @@ -1010,8 +1016,8 @@ def filter_unknowns(items): ChirpChoiceColumn('tuning_step', self._radio, valid_tuning_steps, label=_('Tuning Step')), - ChirpChoiceColumn('skip', self._radio, - valid_skips), + ChirpSkipColumn('skip', self._radio, + valid_skips), power_column, ChirpCommentColumn('comment', self._radio), ]