Merge pull request #381 from Flamanis/CDTrackerInitialization

Change when the CDTrackerWindow is set to Initialized
This commit is contained in:
Tercio Jose
2022-11-19 21:39:55 -03:00
committed by GitHub
+2 -2
View File
@@ -390,8 +390,8 @@ end
--check if the window exists, if not create it
if (not _G.DetailsCDTrackerWindow or not _G.DetailsCDTrackerWindow.Initialized) then
_G.DetailsCDTrackerWindow.Initialized = true
local f = _G.DetailsCDTrackerWindow or DF:CreateSimplePanel(UIParent, 700, 480, "Details! Online CD Tracker", "DetailsCDTrackerWindow")
_G.DetailsCDTrackerWindow.Initialized = true
DF:ApplyStandardBackdrop(f)
--enabled with a toggle button
--execute to reset position
@@ -596,4 +596,4 @@ end
_G.DetailsPluginContainerWindow.OpenPlugin(_G.DetailsCDTrackerWindow)
_G.DetailsCDTrackerWindow:Show()
end
end