Tweak to completely nil the key_back table for setText if not set

develop
John Cosker 2023-02-06 14:53:26 -05:00
parent 4e366790c0
commit e1f74ab068
1 changed files with 1 additions and 1 deletions

@ -1452,7 +1452,7 @@ function CycleHotkeyLabel:init()
self:setOption(self.initial_option)
self:setText{
{key=self.key_back, key_sep='', width=0, on_activate=self.key_back and self:callback('cycle', true)},
self.key_back ~= nil and {key=self.key_back, key_sep='', width=0, on_activate=self.key_back and self:callback('cycle', true)} or {},
{key=self.key, key_sep=self.key_back and '' or ': ', text=self.label, width=self.key_back and 0 or self.label_width,
on_activate=self:callback('cycle')},
' ',