Mercurial > wow > devian
comparison Devian.lua @ 26:b0e8bd30575f v1.4.3
front channel persistence fixes
author | Nenue |
---|---|
date | Thu, 24 Dec 2015 02:59:53 -0500 |
parents | 4085930d5f09 |
children | 31ca76e04766 |
comparison
equal
deleted
inserted
replaced
25:3113fcacaa3e | 26:b0e8bd30575f |
---|---|
215 | 215 |
216 db.toggle = not db.toggle and true or nil | 216 db.toggle = not db.toggle and true or nil |
217 for _, c in ipairs(search) do | 217 for _, c in ipairs(search) do |
218 if db.toggle then | 218 if db.toggle then |
219 c:Show() | 219 c:Show() |
220 if db.current_channel == c.index then | |
221 c:ToFront() | |
222 end | |
220 else | 223 else |
221 c.enabled = nil | 224 c.enabled = nil |
222 c.minimized = nil | 225 c.minimized = nil |
223 c:Maximize() | 226 c:Maximize() |
224 c:Hide() | 227 c:Hide() |
506 self.sig[t_info.signature] = channel | 509 self.sig[t_info.signature] = channel |
507 self.sigID[t_info.signature] = i | 510 self.sigID[t_info.signature] = i |
508 self.IDsig[i] = t_info.signature | 511 self.IDsig[i] = t_info.signature |
509 if i == db.current_channel then | 512 if i == db.current_channel then |
510 channel:ToFront() | 513 channel:ToFront() |
511 end | 514 end |
512 | 515 |
513 return channel | 516 return channel |
514 end | 517 end |
515 | 518 |
516 function D:OnEnable() | 519 function D:OnEnable() |