mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 13:57:10 +09:00
Editor | Fix | ActionToolbar, downloads icon (#2221)
Co-authored-by: konstantiniiv <ki@anytype.io>
This commit is contained in:
parent
a25c4ff06d
commit
1c6b268e80
1 changed files with 6 additions and 2 deletions
|
@ -1575,7 +1575,7 @@ class EditorViewModel(
|
|||
|
||||
blocks.forEach { block ->
|
||||
if (currentSelection().contains(block.id)) {
|
||||
when (block.content) {
|
||||
when (val content = block.content) {
|
||||
is Content.Bookmark -> {
|
||||
excludedActions.add(ActionItemType.Download)
|
||||
}
|
||||
|
@ -1584,7 +1584,11 @@ class EditorViewModel(
|
|||
}
|
||||
is Content.File -> {
|
||||
needSortByDownloads = true
|
||||
targetActions.add(ActionItemType.Download)
|
||||
if (content.state == Content.File.State.DONE) {
|
||||
targetActions.add(ActionItemType.Download)
|
||||
} else {
|
||||
excludedActions.add(ActionItemType.Download)
|
||||
}
|
||||
}
|
||||
is Content.Link -> {
|
||||
excludedActions.add(ActionItemType.Download)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue