Closed Tubly closed 5 months ago
Hello, Thanks for the pull request!
Maybe we should also check if the player is in the initial login or reloading ui. PLAYER_ENTERING_WORLD also triggers when changing map.
Something like:
local isInitialLogin, isReloadingUi = ...
if (isInitialLogin or isReloadingUi) then
-- update initial state...
end
thank you for your input!
I changed it as requested! 😄
And thank you for creating this Addon!!!
Hi,
this is my first Pull Request so i hope everything is fine and sorry for my bad english :)
In my Opinion the initial loading state for Specific Characters Addons was wrong. Addons which are Loaded by the Character showed as "Modified".
So after the PLAYER_ENTERING_WORLD Event where i have the playerName i add the InitialState Function. Addons which were marked as "Modfied" but loaded by the Character are not showed as "Modified".
Without Bugfix on Entering World:![image](https://github.com/Eliote/SimpleAddonManager/assets/42657013/1ce1d330-0db3-47e1-ac67-7ebed40bc097)
With Bugfix on Entering World:![image](https://github.com/Eliote/SimpleAddonManager/assets/42657013/02116555-0ffb-41e6-9b1a-43191f9caf50)
I haven't tested it much.