Skip to content

Commit e1229d6

Browse files
committed
Smart minimap default: hide when Libs-DataBar is present
The LDB data source is already displayed on the databar, making the minimap icon redundant. Uses a first-run flag to preserve existing user preferences.
1 parent 462c600 commit e1229d6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

UI/MinimapButton.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ function LibsSocial:InitializeMinimapButton()
88
return
99
end
1010

11+
-- Smart default: hide minimap icon when Libs-DataBar is present (it shows LDB data already)
12+
if not self.db.profile.minimapDefaultApplied then
13+
self.db.profile.minimapDefaultApplied = true
14+
if C_AddOns.IsAddOnLoaded('Libs-DataBar') then
15+
self.db.profile.minimap.hide = true
16+
end
17+
end
18+
1119
-- Register the minimap button
1220
LibDBIcon:Register("Lib's Social", self.dataObject, self.db.profile.minimap)
1321

0 commit comments

Comments
 (0)