Skip to content

Commit

Permalink
drop spurious adds
Browse files Browse the repository at this point in the history
  • Loading branch information
emptyrivers committed Jan 14, 2025
1 parent a9a4f31 commit 6a974d9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions WeakAurasOptions/RegionOptions/Group.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ local function createDistributeAlignOptions(id, data)
end
end
OptionsPrivate.Private.TimeMachine:Commit()
WeakAuras.Add(data);
OptionsPrivate.ResetMoverSizer();
end
},
Expand Down Expand Up @@ -397,7 +396,6 @@ local function createDistributeAlignOptions(id, data)
end
end
OptionsPrivate.Private.TimeMachine:Commit()
WeakAuras.Add(data);
OptionsPrivate.ResetMoverSizer();
end
},
Expand Down Expand Up @@ -512,7 +510,6 @@ local function createDistributeAlignOptions(id, data)
end
end
OptionsPrivate.Private.TimeMachine:Commit()
WeakAuras.Add(data);
OptionsPrivate.ResetMoverSizer();
end
},
Expand Down Expand Up @@ -627,7 +624,6 @@ local function createDistributeAlignOptions(id, data)
end
end
OptionsPrivate.Private.TimeMachine:Commit()
WeakAuras.Add(data);
OptionsPrivate.ResetMoverSizer();
end
},
Expand Down Expand Up @@ -742,7 +738,6 @@ local function createDistributeAlignOptions(id, data)
end
end
OptionsPrivate.Private.TimeMachine:Commit()
WeakAuras.Add(data);
OptionsPrivate.ResetMoverSizer();
end
}
Expand All @@ -765,8 +760,12 @@ local function createOptions(id, data)
return data.groupIcon and tostring(data.groupIcon) or ""
end,
set = function(info, v)
data.groupIcon = v
WeakAuras.Add(data)
OptionsPrivate.Private.TimeMachine:Append({
uid = data.uid,
actionType = "set",
path = "groupIcon",
payload = v
})
WeakAuras.UpdateThumbnail(data)
end
},
Expand Down

0 comments on commit 6a974d9

Please sign in to comment.