def show_task(self, state):
        """ Assuming no task is currently active, show the controls of the
            specified TaskState.
        """
        # Show the central pane.
        self.control.centralWidget().addWidget(state.central_pane.control)

        # Show the dock panes.
        self._layout_state(state)

        # OSX-specific: if there is only a single tool bar, it doesn't matter if
        # the user can drag it around or not. Therefore, we can combine it with
        # the title bar, which is idiomatic on the Mac.
        self.control.setUnifiedTitleAndToolBarOnMac(
            1 <= len(state.tool_bar_managers))

    #### Methods for saving and restoring the layout ##########################
dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/tasks/task_window_backend.py/TaskWindowBackend.show_task/swapped operands of `<=`