Go to default page after navigation sidebar is loaded
svn: r16162
This commit is contained in:
parent
d624e113fa
commit
1746330b4d
@ -802,8 +802,13 @@ class ViewManager(CLIManager):
|
|||||||
"""
|
"""
|
||||||
Initialize the interface.
|
Initialize the interface.
|
||||||
"""
|
"""
|
||||||
self.__init_views()
|
self.views = get_available_views()
|
||||||
|
defaults = views_to_show(self.views,
|
||||||
|
config.get('preferences.use-last-view'))
|
||||||
|
self.current_views = defaults[2]
|
||||||
|
|
||||||
self.__load_sidebar_plugins()
|
self.__load_sidebar_plugins()
|
||||||
|
self.goto_page(defaults[0], defaults[1])
|
||||||
|
|
||||||
if not self.file_loaded:
|
if not self.file_loaded:
|
||||||
self.actiongroup.set_visible(False)
|
self.actiongroup.set_visible(False)
|
||||||
@ -1035,16 +1040,6 @@ class ViewManager(CLIManager):
|
|||||||
config.set('interface.fullscreen', False)
|
config.set('interface.fullscreen', False)
|
||||||
config.save()
|
config.save()
|
||||||
|
|
||||||
def __init_views(self):
|
|
||||||
"""
|
|
||||||
Read the view definitions and display the default view.
|
|
||||||
"""
|
|
||||||
self.views = get_available_views()
|
|
||||||
defaults = views_to_show(self.views,
|
|
||||||
config.get('preferences.use-last-view'))
|
|
||||||
self.current_views = defaults[2]
|
|
||||||
self.goto_page(defaults[0], defaults[1])
|
|
||||||
|
|
||||||
def get_views(self):
|
def get_views(self):
|
||||||
"""
|
"""
|
||||||
Return the view definitions.
|
Return the view definitions.
|
||||||
|
Loading…
Reference in New Issue
Block a user