mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-16 22:57:34 +00:00
fix: secret show
This commit is contained in:
parent
e3dfaba296
commit
466e3cad4e
|
@ -245,6 +245,7 @@ function gmInte.openConfigMenu(data)
|
|||
input.OnLoseFocus = function(self) if actualConfig.secret then self:SetText("*** 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