Quantcast

Tweak to menu bar fix

urnati [11-25-18 - 12:58]
Tweak to menu bar fix
Filename
Titan/TitanPanel.lua
diff --git a/Titan/TitanPanel.lua b/Titan/TitanPanel.lua
index 5ccc45a..0d081f8 100644
--- a/Titan/TitanPanel.lua
+++ b/Titan/TitanPanel.lua
@@ -521,9 +521,18 @@ function TitanPanelBarButton:PLAYER_REGEN_DISABLED()
 	-- If in combat close all control frames and menus
 	TitanUtils_CloseAllControlFrames();
 	TitanUtils_CloseRightClickMenu();
+
+	-- Needed because 8.0 made changes to the menu bar processing (see TitanMovable)
+	MainMenuBar:SetMovable(true);
+	MainMenuBar:SetUserPlaced(false);
 end

 function TitanPanelBarButton:PLAYER_REGEN_ENABLED()
+	-- Needed because 8.0 made changes to the menu bar processing (see TitanMovable)
+	MainMenuBar:SetMovable(true);
+	MainMenuBar:SetUserPlaced(true);
+	MainMenuBar:SetMovable(false);
+
 	-- Outside combat check to see if frames need correction
 	TitanPanel_AdjustFrames()
 end