core: move expansion checks into module header

This commit is contained in:
shagu
2021-10-10 12:14:46 +02:00
parent 81efaea6a9
commit ebe5d91a3a
27 changed files with 52 additions and 52 deletions
+1 -4
View File
@@ -1,12 +1,9 @@
local _G = _G or getfenv(0)
local GetExpansion = ShaguTweaks.GetExpansion
-- tbc does not allow to rescale nameplates (secure_frames)
if GetExpansion() == "tbc" then return end
local module = ShaguTweaks:register({
title = "Nameplate Scale",
description = "Makes all nameplates honor the UI-Scale setting.",
expansions = { ["vanilla"] = true, ["tbc"] = nil },
enabled = true,
})