Skip to content

Commit

Permalink
reverted changes to workbench_window that are no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
kitchoi committed Apr 8, 2016
1 parent 0d070b2 commit c02a9f7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pyface/workbench/workbench_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,12 @@ def _create_contents(self, parent):
if self._memento is None:
self._memento = WorkbenchWindowMemento()

# Set the initial perspective.
self.active_perspective = self._get_initial_perspective()

else:
# Set the initial perspective.
self.active_perspective = self._get_initial_perspective()

self._restore_contents()

# Set the initial perspective.
self.active_perspective = self._get_initial_perspective()

return contents

###########################################################################
Expand Down Expand Up @@ -470,6 +467,7 @@ def hide_editor_area(self):
""" Hide the editor area. """

self.layout.hide_editor_area()

return

def hide_view(self, view):
Expand Down Expand Up @@ -531,7 +529,9 @@ def reset_views(self):

def show_editor_area(self):
""" Show the editor area. """

self.layout.show_editor_area()

return

def show_view(self, view):
Expand Down Expand Up @@ -799,6 +799,7 @@ def _show_perspective(self, old, new):

def _restore_contents(self):
""" Restore the contents of the window. """

self.layout.set_editor_memento(self._memento.editor_area_memento)

self.size = self._memento.size
Expand Down

0 comments on commit c02a9f7

Please sign in to comment.