
Otherwise we won't clear the 'view-loaded' handler after it was emitted.
Also move field initialization to the correct place, i.e. the init
function of the base class.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1169
(cherry picked from commit a9df4e7516
)