mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Add desktopEnterpriseChannel to the capabilities check.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
0274cd912b
commit
4884fbee87
2 changed files with 7 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
*/
|
||||
|
||||
#include "capabilities.h"
|
||||
#include "configfile.h"
|
||||
|
||||
#include <QVariantMap>
|
||||
#include <QLoggingCategory>
|
||||
|
@ -393,6 +394,11 @@ bool Capabilities::serverHasValidSubscription() const
|
|||
return _capabilities[QStringLiteral("support")].toMap().value(QStringLiteral("hasValidSubscription"), false).toBool();
|
||||
}
|
||||
|
||||
QString Capabilities::desktopEnterpriseChannel() const
|
||||
{
|
||||
return _capabilities[QStringLiteral("support")].toMap().value(QStringLiteral("desktopEnterpriseChannel"), ConfigFile().defaultUpdateChannel()).toString();
|
||||
}
|
||||
|
||||
QStringList Capabilities::blacklistedFiles() const
|
||||
{
|
||||
return _capabilities["files"].toMap()["blacklisted_files"].toStringList();
|
||||
|
|
|
@ -174,6 +174,7 @@ public:
|
|||
[[nodiscard]] bool groupFoldersAvailable() const;
|
||||
|
||||
[[nodiscard]] bool serverHasValidSubscription() const;
|
||||
[[nodiscard]] QString desktopEnterpriseChannel() const;
|
||||
|
||||
// Direct Editing
|
||||
void addDirectEditor(DirectEditor* directEditor);
|
||||
|
|
Loading…
Reference in a new issue