#5050 Remember the position and size of the speechViewer#6202
Conversation
The speechViewer window will open in the same location at the same size as it was when previously closed. If the monitor setup has changed (resolution, or number of monitors) the window is auto positioned/sized.
|
@michaelDCurran please take a look when you get a chance. |
|
| config.conf["speechView"]["width"] = size.width | ||
| config.conf["speechView"]["height"] = size.height | ||
| config.conf["speechView"]["displays"] = self.getAttachedDisplaySizes() | ||
| config.conf["speechView"]["autoPositionWindow"] = False |
There was a problem hiding this comment.
As discussed with @michaelDCurran add these to the config schema. Perhaps the displays entry could just hold the hash of the object. Though now I'm thinking about this again, using the hash would have the disadvantage that it becomes much harder to verify the config / behaviour.
Added speechViewer x,y,width,height,displays to the config schema. Tested with configuration profiles.
|
Change range to xrange, but other than that this looks fine. |
Remove unnecessary casts to int when reading the config. Tidy up generator code.
…ionOfSpeechViewer Conflicts: source/config/__init__.py source/speechViewer.py
When re-opening the speech viewer window, the location and dimensions will now be restored. (#5050)
|
Hello My speech viewer is still not remembering its position after a relaunch of NVDA. Do I misunderstand something? Do I need to check an option to make this work? |
As long as there is no change in displays and the config is saved / not destroyed, it should save and reuse the location. Do you have "Save configuration when exiting NVDA" enabled? |
|
Suddenly, since I wrote the comment above, it seems to work! Very interesting... Didn't work before, and I don't think that I changed anything in the settings. Whatever! It's working now, that's all that counts. Thank you! |
Partially resolves #5050 (remember the position and size of the speech viewer window)
The speechViewer window will open in the same location at the same size as it was when previously closed. If the monitor setup has changed (resolution, or number of monitors) the window is auto positioned/sized.