Leo does not remember window maximized state

Bug #1268970 reported by Jake Peck
12
This bug affects 2 people
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.top.leo_master.windowState()
maximized = bool(ws & QtCore.Qt.WindowMaximized)
g.es(maximized)
----

Leo can be set to be maximized by running this:

----
from PyQt4 import QtCore
top = c.frame.top.leo_master
top.setWindowState(QtCore.Qt.WindowMaximized)
----

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.

Revision history for this message
Edward K. Ream (edreamleo) wrote :
Changed in leo-editor:
status: New → Fix Released
Revision history for this message
Edward K. Ream (edreamleo) wrote :

This works for me (Windows 7 and Ubuntu) with Python 2.7.8, PyQt version 4.8.6.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.