Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Token Dialog doesn't update Properties when viewing a different token #1504

Closed
Phergus opened this issue Apr 10, 2020 · 12 comments
Closed
Labels
bug tested This issue has been QA tested by someone other than the developer.

Comments

@Phergus
Copy link
Contributor

Phergus commented Apr 10, 2020

Describe the bug
The Edit Token Dialog is remembering the properties of the first token opened in a MapTool session when viewing new tokens. This extends to remembering the Property set used on that first token even after a New Campaign is loaded.

To Reproduce
Steps to reproduce the behavior:

  1. Load a campaign with two or more tokens that have properties already set.
  2. Double-click on a token to open Edit Token dialog and observe token properties.
  3. Close dialog.
  4. Double-click on a different token and observe token properties.
  5. Same values are displayed.
  6. Note that Stat Sheet displays the actual token properties and retrieving properties via macros works correctly.

Expected behavior
Properties displayed should match those on the token.

MapTool Info

  • Version: 1.6.0
  • Install: New

Desktop (please complete the following information):

  • OS: Windows
  • Version: 10

Additional context
Example campaign with tokens.
TokenPropsBug.cmpgn.zip

@Phergus Phergus added the bug label Apr 10, 2020
@JamzTheMan
Copy link
Member

Is this the refresh issue or is it truly letting you see and edit old them?

@Phergus
Copy link
Contributor Author

Phergus commented Apr 10, 2020

Both. If you don't change anything in properties the current token keeps its actual values. But if you change even one property all of them are changed to the values of the originally selected token.

@mrkwnzl
Copy link
Contributor

mrkwnzl commented Apr 10, 2020

It doesn’t appear to happen on my old campaign that I created on some 1.5 version, only when I create a new one.

But when I create a new one after opening my old one, the properties are copied into the new one.

@Merudo
Copy link
Member

Merudo commented Apr 10, 2020

It happens only if the token's property type is the first in the property type list.

@mrkwnzl
Copy link
Contributor

mrkwnzl commented Apr 10, 2020

In my campaign file, it’s the first property type in the list and doesn’t happen.

Merudo added a commit to Merudo/maptool that referenced this issue Apr 10, 2020
- Fix edit token dialog not displaying the correct properties if the token property type is the first in the property type list
- Fix RPTools#1504
@Phergus
Copy link
Contributor Author

Phergus commented Apr 10, 2020

And you have multiple property sets?

@mrkwnzl
Copy link
Contributor

mrkwnzl commented Apr 10, 2020

Yes, three.

@Merudo
Copy link
Member

Merudo commented Apr 10, 2020

It also doesn't happen for my old campaign. Which is the one I used while testing to make sure my fix to #472 wasn't breaking anything :/.

@Phergus
Copy link
Contributor Author

Phergus commented Apr 10, 2020

One of my older ones didn't do it but another did. And the new one I created above did.

@Phergus
Copy link
Contributor Author

Phergus commented Apr 10, 2020

Tested fix.

  • Dialog now displays the correct info when going from token to token.
  • Dialog correctly updates after loading a different property set for tokens.
  • Dialog correctly updates when loaded a different campaign.
  • Works correctly with older campaign.
    Appears to be working correctly now.

@Merudo
Copy link
Member

Merudo commented Apr 10, 2020

If you have tokens with a property type that is no longer defined in the campaign, the blank string becomes the index 0 choice, so the bug doesn't happen.

@Phergus
Copy link
Contributor Author

Phergus commented Apr 10, 2020

Interesting. I always reuse the Basic as you can't get rid of the stupid thing.

@Phergus Phergus added the tested This issue has been QA tested by someone other than the developer. label Apr 10, 2020
@Phergus Phergus closed this as completed Apr 10, 2020
Phergus added a commit that referenced this issue Apr 10, 2020
Added hotfix #1504 for token property issue.
Merudo added a commit to Merudo/maptool that referenced this issue Apr 22, 2020
- Fix edit token dialog not displaying the correct properties if the token property type is the first in the property type list
- Fix RPTools#1504
JamzTheMan added a commit that referenced this issue Apr 22, 2020
* Fix Edit Token Dialog not displaying correct properties

- Fix edit token dialog not displaying the correct properties if the token property type is the first in the property type list
- Fix #1504

* Update CHANGE_LOG.md

Added hotfix #1504 for token property issue.

* Update CHANGE_LOG.md

Changed to 1.6.1

* Update CHANGE_LOG.md

Co-authored-by: Jamz <JamzTheMan@gmail.com>
Co-authored-by: Merudo <filteau.guillaume@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug tested This issue has been QA tested by someone other than the developer.
Projects
None yet
Development

No branches or pull requests

4 participants