mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 06:55:59 +03:00
Account UI: Fix log out button text #4578
This commit is contained in:
parent
80bd86a305
commit
ffbd5df25f
1 changed files with 3 additions and 4 deletions
|
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue