Fix logic in video settings popup