mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-01 03:19:59 +00:00
unitframes: check for RegisterStateDriver before using
This fixes a compatibility issue with NotGrid, which is adding a :SetAttribute() function to all frames.
This commit is contained in:
+1
-1
@@ -769,7 +769,7 @@ function pfUI.uf:EnableScripts()
|
||||
local f = self
|
||||
|
||||
-- handle secure unit button templates (> vanilla)
|
||||
if f.SetAttribute then
|
||||
if f.SetAttribute and RegisterStateDriver then
|
||||
f.showmenu = pfUI.uf.RightClickAction
|
||||
f:SetAttribute("unit", f.label .. f.id)
|
||||
f:SetAttribute("type1", "target")
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
## Title: |cff33ffccpf|cffffffffUI |cffaa5555[incomplete]
|
||||
## Author: Shagu
|
||||
## Notes: A complete user interface replacement.
|
||||
## Version: 4.1.0
|
||||
## Version: 4.1.1
|
||||
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache
|
||||
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
## Title: |cff33ffccpf|cffffffffUI
|
||||
## Author: Shagu
|
||||
## Notes: A complete user interface replacement.
|
||||
## Version: 4.1.0
|
||||
## Version: 4.1.1
|
||||
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache
|
||||
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user