mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Pre-setup, disable irrelevant items in context menu
This commit is contained in:
parent
3e150ee47b
commit
d8728a56bc
1 changed files with 6 additions and 0 deletions
|
@ -380,6 +380,12 @@ void Application::setupSystemTray()
|
|||
|
||||
void Application::setupContextMenu()
|
||||
{
|
||||
bool isConfigured = ownCloudInfo::instance()->isConfigured();
|
||||
|
||||
_actionOpenStatus->setEnabled(isConfigured);
|
||||
_actionOpenoC->setEnabled(isConfigured);
|
||||
_actionAddFolder->setEnabled(isConfigured);
|
||||
|
||||
if( _contextMenu ) {
|
||||
_contextMenu->clear();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue