Skip to content

Commit

Permalink
Fixes #58 Options attempting to be built for style before a style has…
Browse files Browse the repository at this point in the history
… been set by the setup wizard.
  • Loading branch information
Wutname1 committed Jul 24, 2018
1 parent f16195c commit 913304f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Modules/Artwork/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ local L = SUI.L
local Artwork_Core = SUI:GetModule('Artwork_Core')

function Artwork_Core:SetupOptions()
if SUI.DBMod.Artwork.Style == '' then
return
end

local Style = SUI:GetModule('Style_' .. SUI.DBMod.Artwork.Style)
SUI.opt.args['Artwork'].args['scale'] = {
name = L['ConfScale'],
Expand Down

0 comments on commit 913304f

Please sign in to comment.