fix: update input value handling in openConfigMenu function

This commit is contained in:
Linventif 2025-07-15 21:42:14 +00:00
parent 30116f1f5c
commit 85f77106b6

View File

@ -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