gui/main: Update systray state before window state
gui/main: Update systray state before window state

  The systray icon's state will be the first thing users will see in
  most situations since the app window is hidden most of the time.
  Therefore, updating its state first seems more appropriate especially
  if the window state update is blocking (i.e. requires user interaction
  like when we detect an invalid configuration).

cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop,cozy-labs/cozy-desktop