mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 01:54:40 +08:00
fix(thread-list): Prevent empty state from showing when loading list
- EmptyState should only be displayed when the thread-list is actually empty, not while it is being loaded - Update ObservableListDataSource to have a state of loaded only when the requested range is > 0, i.e. when we are actually requesting threads
This commit is contained in:
parent
f46101e633
commit
a02b2b62fd
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class ObservableListDataSource extends ListTabular.DataSource
|
|||
@_countEstimate
|
||||
|
||||
loaded: ->
|
||||
@_resultSet isnt null
|
||||
@_resultSet isnt null and @_resultDesiredLast > 0
|
||||
|
||||
empty: =>
|
||||
not @_resultSet or @_resultSet.empty()
|
||||
|
|
Loading…
Reference in a new issue