зеркало из https://github.com/nextcloud/desktop.git
Don't show a sync success status toolip when signed out
This commit is contained in:
Родитель
f77ae28ed1
Коммит
688aaadb60
|
@ -172,7 +172,10 @@ QVariant FolderStatusModel::data(const QModelIndex &index, int role) const
|
||||||
case FolderStatusDelegate::FolderSyncPaused : return f->syncPaused();
|
case FolderStatusDelegate::FolderSyncPaused : return f->syncPaused();
|
||||||
case FolderStatusDelegate::FolderAccountConnected : return accountConnected;
|
case FolderStatusDelegate::FolderAccountConnected : return accountConnected;
|
||||||
case Qt::ToolTipRole:
|
case Qt::ToolTipRole:
|
||||||
|
if ( accountConnected )
|
||||||
return Theme::instance()->statusHeaderText(f->syncResult().status());
|
return Theme::instance()->statusHeaderText(f->syncResult().status());
|
||||||
|
else
|
||||||
|
return tr("Signed out");
|
||||||
case FolderStatusDelegate::FolderStatusIconRole:
|
case FolderStatusDelegate::FolderStatusIconRole:
|
||||||
if ( accountConnected ) {
|
if ( accountConnected ) {
|
||||||
auto theme = Theme::instance();
|
auto theme = Theme::instance();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче