Change when the CDTrackerWindow is set to Initialized
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user