Fixed bug about settings window closing

The settings window now actually functions on new installs.