Model/NavManager.php
public function afterMove(Event $event)
    {
        $page = $event->getPage();
        if ($page->getIsInNavigation()) {
            $this->unpublish();
        }
    }
public function afterMove(Event $event)
    {
        $page = $event->getPage();
        if ($page->getIsInNavigation()) {
            $this->unpublish();
        }
    }
//