saving splitter state on change

to not lose it on unclean exit

## test

i tested that the slot connection works by placing `QMessageBox::information(0, tr(""), tr(""));` at the top of MainWindow::writeSettings an resizing the splitter