diff Options.lua @ 194:55af1ebbec65

Remove silly 'close this window when you open the other one' checkboxes
author Flick <flickerstreak@gmail.com>
date Mon, 15 Nov 2010 10:30:19 -0800
parents 2e7a322e0195
children 97949dbe987f
line wrap: on
line diff
--- a/Options.lua	Mon Nov 15 10:22:45 2010 -0800
+++ b/Options.lua	Mon Nov 15 10:30:19 2010 -0800
@@ -65,22 +65,12 @@
             func     = "OptionShowEditor",
             order    = 5,
           },
-          _closeThis = {
-            type     = "toggle",
-            name     = L["Close on Launch"],
-            desc     = L["Close the Interface Options window when launching the ReAction Bar Editor"],
-            get      = "OptionGetCloseThis",
-            set      = "OptionSetCloseThis",
-            order    = 6,
-            cmdHidden = true,
-            dropdownHidden = true,
-          },
           keybind = {
             type     = "execute",
             name     = L["Key Bindings"],
             desc     = L["Show the keybinding dialogue"],
             func     = "OptionLaunchKeybindMode",
-            order    = 7,
+            order    = 6,
           },
           skipProfileWarning = {
             type     = "toggle",
@@ -89,7 +79,7 @@
             get      = "OptionGetSkipKeybindWarning",
             set      = "OptionSetSkipKeybindWarning",
             width    = "double",
-            order    = 8,
+            order    = 7,
           },
         }
       },
@@ -172,19 +162,7 @@
 
 function ReAction:OptionShowEditor()
   self:ShowEditor()
-  if self.db.profile.closeOptionsOnEditorLaunch then
-    InterfaceOptionsFrame:Hide()
-  end
-end
-
-
-function ReAction:OptionGetCloseThis()
-  return self.db.profile.closeOptionsOnEditorLaunch
-end
-
-
-function ReAction:OptionSetCloseThis(info,val)
-  self.db.profile.closeOptionsOnEditorLaunch = val
+  InterfaceOptionsFrame:Hide()
 end