TargetCharms

4 - Loses position after disabling and later reenabling addon

What steps will reproduce the problem?
1. Install TC, login, setup including non-standard positioning
2. Logout
3. Disable TC
4. Login
5. Logout
6. Enable TC
7. Login

What is the expected output? What do you see instead?
One would expect to see TC setup as it was in step 1, but all positioning has been reset.

What version of the product are you using?
1.5.3

Do you have an error log of what happened?
N/A

Please provide any additional information below.

After additional research I found how TC's position is normally remembered: via Blizzard's default layout mechanisms, in the file WTF/Account/[AccountName]/[ServerName]/[CharacterName]/layout-local.txt

TC loses its positioning after disabling and reenabling because this file is updated upon every logout (and the beginning of reloadui) with the current position of the *current frames*. And only the current frames. As such, the moment you logout (or start reloadui) when TC is not loaded, TC is not on screen and hence its position not remembered. Next time you load the plugin again, the position is reset to default since it was a goner.

The best way of dealing with this is probably to save the location yourself in your addon settings and reloading said location at each load of the plugin.

User When Change
Gander Dec 06, 2011 at 21:34 UTC Changed type from Defect to Enhancement

Changed status from New to Accepted
CMTitan Jul 09, 2011 at 10:18 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of Gander Gander Dec 06, 2011 at 21:34 UTC - 0 likes

    If I re-activate my wow account, I will fix these.

  • 1 comment

Facts

Last updated
Mar 30, 2012
Reported
Jul 09, 2011
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
1

Reported by

Possible assignees