File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -304,6 +304,7 @@ SpaceSupport::SpaceSupport(const QVariantMap &spaces_support)
304
304
return ;
305
305
}
306
306
enabled = spaces_support.value (QStringLiteral (" enabled" )).toBool ();
307
+ hasMultiplePersonalSpaces = spaces_support.value (QStringLiteral (" has_multiple_personal_spaces" )).toBool ();
307
308
version = QVersionNumber::fromString (spaces_support.value (QStringLiteral (" version" )).toString ());
308
309
}
309
310
Original file line number Diff line number Diff line change 20
20
21
21
#include " common/checksumalgorithms.h"
22
22
23
- #include < QVariantMap>
24
23
#include < QStringList>
24
+ #include < QVariantMap>
25
25
#include < QVersionNumber>
26
26
27
27
namespace OCC {
@@ -81,11 +81,13 @@ struct OWNCLOUDSYNC_EXPORT SpaceSupport
81
81
/* *
82
82
"spaces": {
83
83
"version": "0.0.1",
84
- "enabled": true
84
+ "enabled": true,
85
+ "has_multiple_personal_spaces": true
85
86
}
86
87
*/
87
88
SpaceSupport (const QVariantMap &spaces_support);
88
89
bool enabled = false ;
90
+ bool hasMultiplePersonalSpaces = false ;
89
91
QVersionNumber version;
90
92
91
93
bool isValid () const ;
@@ -305,4 +307,4 @@ class OWNCLOUDSYNC_EXPORT Capabilities
305
307
};
306
308
}
307
309
308
- #endif // CAPABILITIES_H
310
+ #endif // CAPABILITIES_H
Original file line number Diff line number Diff line change @@ -97,6 +97,11 @@ void SpaceImage::update()
97
97
98
98
QString Space::displayName () const
99
99
{
100
+ auto hasManyPersonalSpaces = _spaceManager->account ()->capabilities ().spacesSupport ().enabled ;
101
+ if (hasManyPersonalSpaces) {
102
+ return _drive.getName ();
103
+ }
104
+
100
105
if (_drive.getDriveType () == personalC) {
101
106
return tr (" Personal" );
102
107
} else if (_drive.getId () == sharesIdC) {
You can’t perform that action at this time.
0 commit comments