File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -266,10 +266,15 @@ end
266266-- Finds TSM's mail window by looking for the MailsScrollTable element
267267-- (unique to TSM's mail UI) and walking up to the top-level parent.
268268local cachedTSMMailFrame
269+ local tsmScanComplete = false
269270local function FindTSMMailFrame ()
270271 if cachedTSMMailFrame then
271272 return cachedTSMMailFrame
272273 end
274+ -- Only scan once; if TSM frame wasn't found, it won't appear mid-session
275+ if tsmScanComplete then
276+ return nil
277+ end
273278 -- Find MailsScrollTable, then walk up to the LargeApplicationFrame
274279 local frame = EnumerateFrames ()
275280 while frame do
@@ -281,13 +286,15 @@ local function FindTSMMailFrame()
281286 local parentName = parent :GetName ()
282287 if parentName and type (parentName ) == " string" and parentName :match (" ^TSM_FRAME:LargeApplicationFrame:" ) then
283288 cachedTSMMailFrame = parent
289+ tsmScanComplete = true
284290 return parent
285291 end
286292 parent = parent :GetParent ()
287293 end
288294 end
289295 frame = EnumerateFrames (frame )
290296 end
297+ tsmScanComplete = true
291298 return nil
292299end
293300
You can’t perform that action at this time.
0 commit comments