* 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:
@ -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]
|
||||
|
Reference in New Issue
Block a user