mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 21:05:44 +03:00
Theme: Revert logic of singleAccount switch.
To use the same logic as the other clients and unify ownBrander implementations, the switch is now called multiAccount() rather than singleAccount() with a reverse logic. Desktop Client stays with the default of having multiaacount enabled. Note that existing brandings need to rename the switch. https://github.com/owncloud/ownbrander/issues/443
This commit is contained in:
parent
b7c927f349
commit
a3904f4d32
3 changed files with 6 additions and 5 deletions
|
@ -173,7 +173,7 @@ void GeneralSettings::slotAccountAddedOrRemoved()
|
|||
{
|
||||
_ui->addAccountButton->setVisible(
|
||||
AccountManager::instance()->accounts().isEmpty()
|
||||
|| !Theme::instance()->singleAccount());
|
||||
|| Theme::instance()->multiAccount());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -201,9 +201,9 @@ bool Theme::singleSyncFolder() const {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool Theme::singleAccount() const
|
||||
bool Theme::multiAccount() const
|
||||
{
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
QString Theme::defaultServerFolder() const
|
||||
|
|
|
@ -111,10 +111,11 @@ public:
|
|||
* Characteristics: bool if more than one sync folder is allowed
|
||||
*/
|
||||
virtual bool singleSyncFolder() const;
|
||||
|
||||
/**
|
||||
* When true, there can only be one account.
|
||||
* When true, client works with multiple accounts.
|
||||
*/
|
||||
virtual bool singleAccount() const;
|
||||
virtual bool multiAccount() const;
|
||||
|
||||
/**
|
||||
* URL to help file
|
||||
|
|
Loading…
Reference in a new issue