mirror of
https://github.com/gmod-integration/lua.git
synced 2025-08-01 18:22:40 +00:00
fix: update input value handling in openConfigMenu function
This commit is contained in:
parent
30116f1f5c
commit
85f77106b6
|
@ -363,6 +363,7 @@ function gmInte.openConfigMenu(data)
|
|||
input.OnLoseFocus = function(self) if actualConfig.secret then self:SetText(gmInte.getTranslation("admin.click_to_show", "*** Click to show ***")) end end
|
||||
local isLastID = 0
|
||||
input.OnChange = function(self)
|
||||
value = self:GetValue()
|
||||
if actualConfig.resetIfEmpty && self:GetValue() == "" && actualConfig.defaultValue then
|
||||
self:SetText(actualConfig.defaultValue)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user