'Actions to be performed only after the main window\'s `show` method
was triggered'

def post_visible_setup(self):

    self.restore_scrollbar_position.emit()
    atexit.register(self.remove_tmpdir)
    for widget in self.floating_dockwidgets:
        widget.setFloating(True)
    if running_in_mac_app():
        idx = __file__.index(MAC_APP_NAME)
        app_path = __file__[:idx]
        subprocess.call(['open', (app_path + MAC_APP_NAME)])
    if (CONF.get('main', 'single_instance') and (not self.new_instance) and self.open_files_server):
        t = threading.Thread(target=self.start_open_files_server)
        t.setDaemon(True)
        t.start()
        self.sig_open_external_file.connect(self.open_external_file)
    self.create_plugins_menu()
    self.create_toolbars_menu()
    self.toolbars_visible = CONF.get('main', 'toolbars_visible')
    self.load_last_visible_toolbars()
    self.lock_dockwidgets_action.setChecked(self.dockwidgets_locked)
    self.apply_panes_settings()
    if (self.console.dockwidget.isVisible() and (DEV is None)):
        self.console.toggle_view_action.setChecked(False)
        self.console.dockwidget.hide()
    plugins_to_show = [self.ipyconsole]
    if (self.help is not None):
        plugins_to_show.append(self.help)
    for plugin in plugins_to_show:
        if plugin.dockwidget.isVisible():
            plugin.dockwidget.raise_()
    if (not self.ipyconsole.isvisible):
        self.historylog.add_history(get_conf_path('history.py'))
    if self.open_project:
        self.projects.open_project(self.open_project)
    else:
        self.projects.reopen_last_project()
        if (self.projects.get_active_project() is None):
            self.editor.setup_open_files()
    if ((DEV is None) and CONF.get('main', 'check_updates_on_startup')):
        self.give_updates_feedback = False
        self.check_updates(startup=True)
    self.report_missing_dependencies()
    self.menuBar().raise_()
    self.is_setting_up = False
