sillsdev / flashgrid

Other
5 stars 4 forks source link

Remember window size and position OR get rid of separate window #6

Closed pconstrictor closed 9 years ago

pconstrictor commented 9 years ago

Currently the window sizes itself to the size of the screen. It can be resized by the user, but it will continue to pop up at full size.

Ideally, we'd detect and save the size/position if the user changes them. (Just saving to memory is fine.)

Alternatively, we could eliminate the popup and instead display the grid in Anki's main view. That might be better but is definitely trickier (more intrusive and bug-prone), and it would significantly reduce the total available space.

pconstrictor commented 9 years ago

Just found a built-in feature we can probably use: from aqt import utils utils.saveGeom()

pconstrictor commented 9 years ago

Done. And Anki actually saves this to disk, so it remembers even across restarts. In other words, the automatic sizing will now only happen once per computer. In case this is a problem, or for testing, using the menu option for toggling FlashGrid off will make it forget and start fresh next time.