Fix backwards logic for noCloseButton