Remember window size on the desktop

Bug #1214568 reported by Michael Spencer
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Invalid
Undecided
Unassigned

Bug Description

It would be nice for the app to remember it's previous window size when running on the desktop.

affects: ubuntu-filemanager-app → ubuntu-ui-toolkit
Revision history for this message
Kai Mast (kai-mast) wrote :

Can this be done in QML? I think we have to patch qmlscene for this...

Revision history for this message
Michael Spencer (ibelieve) wrote :

Yes and no in regards to doing this in pure QML.

Yes, because MainView has width and height properties, and all that is necessary is to save them on exit and load them on the app's starting.

No, because although that works, it doesn't take into account the window being maximized. So if the window was maximized when exiting, the window will load in a non-maximized state with the size of the maximized window. Not good.

So there needs to be some other way to do this, other then just saving/restoring the width and height of the MainView.

tags: added: desktop-touch
Revision history for this message
Zsombor Egri (zsombi) wrote :

StateSaver has a proposed functionality top opt in for permanent state saving. However that would mean that everything will be permanently saved, wherever the StateSaver will be used.

A better approach would be to use UbuntuSettings. That package will be released in the coming month(s).

Changed in ubuntu-ui-toolkit:
milestone: none → june-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: june-2014 → september-2014
Revision history for this message
Zsombor Egri (zsombi) wrote :

You can achieve this by using Settings from Qt.labs.settings. StateSaver will not have the functionality of the Settings.

Changed in ubuntu-ui-toolkit:
status: New → Invalid
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.