def register_actions(extension_id, extension_inst):
    try:
        import omni.kit.actions.core

        action_registry = omni.kit.actions.core.get_action_registry()
        actions_tag = "Welcome"

        action_registry.register_action(
            extension_id,
            "toggle_window",
            extension_inst.toggle_window,
            display_name="File->Welcome",
            description="Show/Hide welcome window",
            tag=actions_tag,
        )
    except ImportError:
        pass


def deregister_actions(extension_id):
    try:
        import omni.kit.actions.core
        action_registry = omni.kit.actions.core.get_action_registry()
        action_registry.deregister_all_actions_for_extension(extension_id)
    except ImportError:
        pass