This is assumed to only matter for the very first opened document where there is only 1 "Untitled" tab because KateMainWindow::viewChanged
is not emitted in that case. That is the main reason why a lambda is used and the signal is not connected to the pre-existing views before readConfig()
is called. I'm not sure if that assumption wil cause problems in the future, though.