mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Show the sync icon in case the status is not yet defined.
This fixes the problem that on the first sync, no proper status icon is shown on a potential long update phase.
This commit is contained in:
parent
bdba56f60b
commit
d0b9b002e4
1 changed files with 4 additions and 0 deletions
|
@ -268,6 +268,10 @@ void AccountSettings::folderToModelItem( QStandardItem *item, Folder *f )
|
|||
// if the folder was disabled before, set the sync icon
|
||||
item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
|
||||
} // we keep the previous icon for the SyncPrepare state.
|
||||
} else if( status == SyncResult::Undefined ) {
|
||||
// startup, the sync was never done.
|
||||
qDebug() << "XXX FIRST time sync, setting icon to sync running!";
|
||||
item->setData( theme->syncStateIcon( SyncResult::SyncRunning), FolderStatusDelegate::FolderStatusIconRole );
|
||||
} else {
|
||||
// kepp the previous icon for the prepare phase.
|
||||
if( status == SyncResult::Problem) {
|
||||
|
|
Loading…
Reference in a new issue