* src/Config/_GrampsConfigKeys.py: add saving of family editor size, disabling of

defaulting to last viwe
	* src/ViewManager.py: allow disabling of defaulting to last view
	* src/GrampsCfg.py: allow disabling of defaulting to last view
	* src/ViewManager.py: allow disabling of defaulting to last view
	* data/gramps.schemas.in: allow disabling of defaulting to last view
	


svn: r7617
This commit is contained in:
Don Allingham
2006-11-12 03:35:52 +00:00
parent b37e158da4
commit b45b7de3ea
5 changed files with 57 additions and 8 deletions

View File

@ -665,8 +665,12 @@ class ViewManager:
self.buttons.append(button)
self.button_handlers.append(handler_id)
current = Config.get(Config.LAST_VIEW)
if current > len(self.pages):
use_current = Config.get(Config.USE_LAST_VIEW)
if use_current:
current = Config.get(Config.LAST_VIEW)
if current > len(self.pages):
current = 0
else:
current = 0
self.active_page = self.pages[current]