File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,7 +316,21 @@ function ns:Init()
316316 _G .SLASH_UNIFIED_PROFILE_MANAGER1 = ' /upm' ;
317317 _G .SLASH_UNIFIED_PROFILE_MANAGER2 = ' /profiles' ;
318318 SlashCmdList [' UNIFIED_PROFILE_MANAGER' ] = function ()
319- Settings .OpenToCategory (category );
319+ AceConfig :RegisterOptionsTable (name , ns :GetOptionsTable ());
320+ AceConfigDialog :Open (name );
321+ local container = AceConfigDialog .OpenFrames [name ];
322+ if not container or not container .frame then return ; end
323+ container :SetTitle (' Unified Profile Manager' );
324+ local frame = container .frame ;
325+ frame :SetMovable (true );
326+ frame :SetScript (' OnMouseDown' , function (self )
327+ self :StartMoving ();
328+ end );
329+ frame :SetScript (' OnMouseUp' , function (self )
330+ self :StopMovingOrSizing ();
331+ end );
332+ frame .ClearAllPoints = nop ;
333+ frame .SetPoint = nop ;
320334 end ;
321335end
322336
You can’t perform that action at this time.
0 commit comments