machine: Disconnect signal for correct object

When we moved from listening to ui_state changes from App to AppWindow
in commit 6463ad23, we forgot to update the disconnection part.
machine: Screenshots only affect main_window

Screenshots enabling/disabling is only related to main_window