mainWindow: Simplify state saving
The existing code is still using a pattern from the GTK3 era, in GTK4 we can simply set up a couple of bindings.
The existing code is still using a pattern from the GTK3 era, in GTK4 we can simply set up a couple of bindings.