File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 102102 hideOnEscape = true ,
103103 hasEditBox = true ,
104104 OnAccept = function (self , data )
105- local recipient = self . editBox :GetText ()
105+ local recipient = self : GetEditBox () :GetText ()
106106 addon :SendBugsToUser (recipient , data )
107107 end ,
108108 OnShow = function (self )
109- self . button1 :Disable ()
109+ self : GetButton1 () :Disable ()
110110 end ,
111111 EditBoxOnTextChanged = function (self )
112112 local t = self :GetText ()
113+ local dialog = self :GetParent ()
113114 if t :len () > 2 and not t :find (" %s" ) then
114- self : GetParent (). button1 :Enable ()
115+ dialog : GetButton1 () :Enable ()
115116 else
116- self : GetParent (). button1 :Disable ()
117+ dialog : GetButton1 () :Disable ()
117118 end
118119 end ,
119120 enterClicksFirstButton = true ,
You can’t perform that action at this time.
0 commit comments