def _build_menu(self, context_menu: QMenu):
        """Build the context menu."""
        logger.debug("Show tray icon enabled in settings: {}".format(cm.ConfigManager.SETTINGS[cm.SHOW_TRAY_ICON]))
        # Items selected for display are shown on top
        self._fill_context_menu_with_model_item_actions(context_menu)
        # The static actions are added at the bottom
        context_menu.addAction(self.action_view_script_error)
        context_menu.addAction(self.action_enable_monitoring)
        context_menu.addAction(self.action_hide_icon)
        context_menu.addAction(self.action_show_config_window)
        context_menu.addAction(self.action_quit)
def _build_menu ( self , context_menu : QMenu ) : logger . debug ( "Show tray icon enabled in settings: {}" . format ( cm . ConfigManager . SETTINGS [ cm . SHOW_TRAY_ICON ] ) ) self . _fill_context_menu_with_model_item_actions ( context_menu ) context_menu . addAction ( self . action_view_script_error ) context_menu . addAction ( self . action_enable_monitoring ) context_menu . addAction ( self . action_hide_icon ) context_menu . addAction ( self . action_show_config_window ) context_menu . addAction ( self . action_quit )
Build the context menu.