Skip to content

Commit 215b750

Browse files
committed
Prevent opening multiple DM frames
1 parent 396fd52 commit 215b750

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/custom_chat/client/vgui/chat_frame.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ function PANEL:OpenDirectMessage()
444444
return
445445
end
446446

447+
if IsValid( self.frameOpenDM ) then
448+
self.frameOpenDM:Close()
449+
end
450+
447451
local frame = vgui.Create( "DFrame" )
448452
frame:SetSize( 380, 300 )
449453
frame:SetTitle( L"channel.open_dm" )

0 commit comments

Comments
 (0)