apply settings takes me out or puts me in fullscreen

I am building a graphics option menu right now, and it is fully working aside from one part

the problem is on the apply settings node. If I check “check for command line overrides” and I change a setting while in full screen, it takes me out of full screen. If I have it unchecked, and I change a setting while out of full screen, it puts it in full screen