changeset 69:e89244da507b

Fixed beacon click action on extra consoles. Removed the load-time `print` output about the front channel.
author Nenue
date Tue, 15 Mar 2016 20:06:56 -0400
parents 1687ae1c6162
children d73b883b415b
files Devian.lua Devian.xml UI.lua
diffstat 3 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Devian.lua	Sat Mar 12 02:31:55 2016 -0500
+++ b/Devian.lua	Tue Mar 15 20:06:56 2016 -0400
@@ -549,7 +549,7 @@
 
   if currentProfile.workspace then
     if D.console[currentProfile.current_channel] then
-      print('bringing', D.console[currentProfile.current_channel].signature, 'to the front')
+      --print('bringing', D.console[currentProfile.current_channel].signature, 'to the front')
       D.console[currentProfile.current_channel]:ToFront()
       -- bring the current channel to the front
     end
--- a/Devian.xml	Sat Mar 12 02:31:55 2016 -0500
+++ b/Devian.xml	Tue Mar 15 20:06:56 2016 -0400
@@ -299,7 +299,7 @@
           if IsShiftKeyDown() then
             Devian:Console_Toggle(self.console.index, 0)
           else
-            if self.console.index == DevianDB.current_channel or (not self.console.enabled) then
+            if self.console.index == Devian.currentProfile.current_channel or (not self.console.enabled) then
               Devian:Console_Toggle(self.console.index)
               if self.console.enabled then
                 if self.console.minimized then
--- a/UI.lua	Sat Mar 12 02:31:55 2016 -0500
+++ b/UI.lua	Tue Mar 15 20:06:56 2016 -0400
@@ -377,7 +377,6 @@
 -- @param ... one or more space-seperated channel keys
 function D:Console_Toggle(input, force)
   local profile = D.currentProfile
-  --oldprint(input)
   local setAll
   local search = {}
   local key
@@ -408,7 +407,6 @@
   end
 
   for i, id in pairs(search) do
-    oldprint(i, id)
     local c = self.console[id]
     if setAll then
       c.enabled = profile.enabled and profile.enabled or nil
@@ -419,7 +417,6 @@
       if force == 0 then
         c.enabled = nil
       end
-      oldprint(id, '  ', force, c.enabled, profile.enabled)
     end
 
     if c.enabled or (setAll and profile.enabled) then