Only allow toggling of notification center when notifications exist

This is a very simple solution to issue #1426.

Side note: I noticed that when I changed a few files a couple of files were generated, do you think it's worth getting all the generated files out of the repository?