Leo does not remember window maximized state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
leo-editor |
Fix Released
|
Low
|
Unassigned |
Bug Description
On Windows XP and 7, python 2.7, at least -- but I'd suspect all OSs and pythons.
Steps to reproduce:
1. Start Leo. Make a new .leo file.
2. Maximize Leo. Save.
3. Quit Leo.
4. Reopen that .leo file. Window is not maximized, but merely resized to take up the full screen.
The following script reports True when Leo is maximized and False when not:
----
from PyQt4 import QtCore
ws = c.frame.
maximized = bool(ws & QtCore.
g.es(maximized)
----
Leo can be set to be maximized by running this:
----
from PyQt4 import QtCore
top = c.frame.
top.setWindowSt
----
Not sure where the resize code actually happens in Leo's init process, or where one would save the maximized state (perhaps c.db?), but these code snippets should help in implementing true remembering of maximized state in Leo.
Now tracked at https:/ /github. com/leo- editor/ leo-editor/ issues/ 73