diff UI.lua @ 60:59e047d6c5de v2.1.60

- Frame fading on movement re-implemented. - Fixed front console losing focus between reloads.
author Nenue
date Tue, 26 Jan 2016 16:43:03 -0500
parents 0a9a6740ea5d
children 8729d39f6a3d
line wrap: on
line diff
--- a/UI.lua	Tue Jan 12 04:54:52 2016 -0500
+++ b/UI.lua	Tue Jan 26 16:43:03 2016 -0500
@@ -68,8 +68,14 @@
   c.out.backdrop:SetBlendMode(db.frontblend)
   c.dropmenu.icon:SetVertexColor(unpack(db.frontheader))
   c.title:SetTextColor(unpack(db.frontborder))
+
+  oldprint('changing current toplevel from', db.current_channel, 'to', c.index)
   db.current_channel = c.index
 
+  oldprint('toplevel is now', db.current_channel)
+  c:Save()
+
+
   -- update dock buttons
   local beacon = D.dock.buttons[c.index]
   beacon.selected = true
@@ -319,7 +325,7 @@
   if channel.enabled then -- hide or show last since Min/Max mess with visibility
   --print('setchan(5a) enable')
     channel:Show()
-    channel:ToFront()
+    --channel:ToFront()
   else
     --print('setchan(5a) disable')
     channel:Hide()