fix: secret show

This commit is contained in:
Linventif 2024-07-20 15:01:21 +00:00
parent e3dfaba296
commit 466e3cad4e

View File

@ -245,6 +245,7 @@ function gmInte.openConfigMenu(data)
input.OnLoseFocus = function(self) if actualConfig.secret then self:SetText("*** Click to show ***") end end input.OnLoseFocus = function(self) if actualConfig.secret then self:SetText("*** Click to show ***") end end
local isLastID = 0 local isLastID = 0
input.OnChange = function(self) input.OnChange = function(self)
value = self:GetValue()
if actualConfig.resetIfEmpty && self:GetValue() == "" && actualConfig.defaultValue then if actualConfig.resetIfEmpty && self:GetValue() == "" && actualConfig.defaultValue then
self:SetText(actualConfig.defaultValue) self:SetText(actualConfig.defaultValue)
return return