зеркало из https://github.com/nextcloud/desktop.git
Account UI: Fix log out button text #4578
This commit is contained in:
Родитель
80bd86a305
Коммит
ffbd5df25f
|
@ -544,11 +544,10 @@ void AccountSettings::slotAccountStateChanged(int state)
|
|||
}
|
||||
/* set the correct label for the Account toolbox button */
|
||||
if( _accountState ) {
|
||||
bool isConnected = _accountState->isConnected();
|
||||
if( isConnected ) {
|
||||
_toggleSignInOutAction->setText(tr("Log out"));
|
||||
} else {
|
||||
if( _accountState->isSignedOut() ) {
|
||||
_toggleSignInOutAction->setText(tr("Log in"));
|
||||
} else {
|
||||
_toggleSignInOutAction->setText(tr("Log out"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче