Quantcast

Elv's catchup

Darthpred [11-06-12 - 13:43]
Elv's catchup
Filename
ElvUI_SLE/modules/install.lua
diff --git a/ElvUI_SLE/modules/install.lua b/ElvUI_SLE/modules/install.lua
index a365ab3..c551539 100644
--- a/ElvUI_SLE/modules/install.lua
+++ b/ElvUI_SLE/modules/install.lua
@@ -178,14 +178,14 @@ function E:GetColor(r, b, g, a)
 	return { r = r, b = b, g = g, a = a }
 end

-function E:SetupTheme(theme, noDisplayMsg)
+function E:SetupTheme(theme, noDisplayMsg, noPopup)
 	local classColor = RAID_CLASS_COLORS[E.myclass]
 	E.db.theme = theme
-
-	if (not E.PixelMode and theme == 'pixelPerfect') or (E.PixelMode and theme ~= 'pixelPerfect') then
+
+	if not noPopup and ((not E.PixelMode and theme == 'pixelPerfect') or (E.PixelMode and theme ~= 'pixelPerfect')) then
 		E:StaticPopup_Show('PIXELPERFECT_CHANGED')
 	end
-
+
 	E.private.general.pixelPerfect = false;

 	if not noDisplayMsg then
@@ -202,6 +202,7 @@ function E:SetupTheme(theme, noDisplayMsg)

 	--Set colors
 	if theme == 'pixelPerfect' then
+		E.global.newThemePrompt = true;
 		E.private.general.pixelPerfect = true;
 		E.db.general.bordercolor = E:GetColor(0, 0, 0)
 		E.db.general.backdropcolor = E:GetColor(.1, .1, .1)
@@ -247,7 +248,7 @@ function E:SetupTheme(theme, noDisplayMsg)
 		E.db.bags.bankSize = 34;
 		E.private.auras.size = 30;

-		if not noDisplayMsg then
+		if not noDisplayMsg or noPopup then
 			if not E.db.movers then E.db.movers = {}; end
 			E.db.movers["ElvUF_PetMover"] = "BOTTOMElvUIParentBOTTOM0104"
 			E.db.movers["AurasMover"] = "TOPRIGHTElvUIParentTOPRIGHT-221-5"
@@ -295,8 +296,7 @@ function E:SetupTheme(theme, noDisplayMsg)
 	if not noDisplayMsg then
 		E:UpdateAll(true)
 	end
-
-
+
 	if InstallStatus then
 		InstallStatus:SetStatusBarColor(unpack(E['media'].rgbvaluecolor))