Skip to content

Commit

Permalink
Fix GameMenu lua error with skinner or consoleport
Browse files Browse the repository at this point in the history
  • Loading branch information
Wutname1 committed Aug 11, 2024
1 parent 66bf5a5 commit 15b9c09
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Core/Skins/Blizzard/Base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,13 @@ end

local function OnEnable()
GameMenuFrame.MenuButtons = GameMenuFrame.MenuButtons or {}
if not SUI.Skins.DB.Blizzard then SUI.Skins.DB.Blizzard = {
GameMenu = {},
} end
if not SUI.Skins.DB.Blizzard.GameMenu then SUI.Skins.DB.Blizzard.GameMenu = {} end
if not SUI.Skins.DB.Blizzard.GameMenu.Scale then SUI.Skins.DB.Blizzard.GameMenu.Scale = 0.8 end

if SUI:IsAddonDisabled('Skinner') and SUI:IsAddonDisabled('ConsolePort') then
---@class SUI.Module.Handler.Skins
if not SUI.Skins.DB.Blizzard then SUI.Skins.DB.Blizzard = {
GameMenu = {},
} end
if not SUI.Skins.DB.Blizzard.GameMenu then SUI.Skins.DB.Blizzard.GameMenu = {} end
if not SUI.Skins.DB.Blizzard.GameMenu.Scale then SUI.Skins.DB.Blizzard.GameMenu.Scale = 0.8 end
GameMenuFrame:SetScale(SUI.Skins.DB.Blizzard.GameMenu.Scale)
else
if GameMenuFrame.SUI then return end
Expand Down

0 comments on commit 15b9c09

Please sign in to comment.