TokenTool icon indicating copy to clipboard operation
TokenTool copied to clipboard

TokenTool randomly saves last screen position with bad coordinates

Open Phergus opened this issue 5 years ago • 3 comments

Describe the bug Seemingly at random, TokenTool will save it's last screen position with negative screen coordinates way off the actual available screen space.

HKEY_CURRENT_USER\Software\JavaSoft\Prefs\net\rptools\tokentool\client
window_x = -32000.0
window_y = -32000.0

To Reproduce Steps to reproduce the behavior:

  1. Unknown but appears to be related to dual monitor setups.

Expected behavior Expect it not to happen.

TokenTool Info

  • Version: 2.0+
  • Install: Any

Desktop (please complete the following information):

  • OS: Windows
  • Version:

Additional context See forum post.

Phergus avatar Apr 07 '19 13:04 Phergus

Perhaps a check should be added before saving prefs that the values being saved are sane.

Phergus avatar Apr 07 '19 13:04 Phergus

Very late reply, but it might be easier to just check on import of settings from registry that the window is actually fully on screen.

RevenantBob avatar Oct 02 '19 07:10 RevenantBob

Have not seen this happen with 2.1 or 2.2 develop but then it rarely happened before. YMMV.

Phergus avatar Jul 12 '21 17:07 Phergus