Ensure we quickly show/hide the systray window on startup
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 22 Oct 2020 10:39:40 +0000 (12:39 +0200)
committerCamila (Rebase PR Action) <hello@camila.codes>
Thu, 22 Oct 2020 17:31:05 +0000 (17:31 +0000)
commit24964e2b9b0e4c339765efd7a80754beb407cc15
tree00412ea418eb3ad81c58b3d93127fc6b7125e822
parent802d27ed0f336882a0b4b979c5e1e7a88cce0d9d
Ensure we quickly show/hide the systray window on startup

This is quick enough that no flickering should appear in practice.

We end up doing this because for some reason on Windows (I dug up deep
into the Windows QPA without nailing it down) not showing that systray
window at least once prevents the app object to return from exec() when
the session ends.

It's as if that window would be in some limbo state (neither opened nor
closed) which would prevent quitting. Clearly what we're doing here is a
workaround...

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/systray.cpp
src/gui/systray.h
src/gui/tray/Window.qml