Move pause/unpause helpers to Systray
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 8 Oct 2020 14:32:10 +0000 (16:32 +0200)
committerCamila (Rebase PR Action) <hello@camila.codes>
Tue, 10 Nov 2020 17:29:51 +0000 (17:29 +0000)
commit1288ee0437be6db5dddd103bc3ba1091e7133224
treee2bf075990c0e329ff23e1c6f906951352684987
parent3ffc699058ef398ffc33bf1435c876d3a9974e9b
Move pause/unpause helpers to Systray

We had signals just to call those backs in ownCloudGui, they were
otherwise unused. So let's move them inside of Systray since it's
specific to it anyway.

Also fix the dangerous call to sender(). We can call this function
without going through a signal/slot connection and also it's never
connected to an AccountState.

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