We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e49b878 commit 9285327Copy full SHA for 9285327
KeyUI.lua
@@ -786,7 +786,7 @@ function addon:SetKey(button)
786
787
-- Calculate the maximum allowed characters based on button width
788
local max_allowed_chars = math.floor(button:GetWidth() / 9)
789
- local combined_text = button.short_key:GetText() -- Combined text with modifiers if present
+ local combined_text = button.short_key:GetText() or "" -- Combined text with modifiers if present / Use empty string if GetText() returns nil
790
791
-- Use Condensed font if the combined text exceeds max_allowed_chars
792
if string.len(combined_text) > max_allowed_chars then
0 commit comments