Skip to content
Snippets Groups Projects
Commit 11e58168 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Storages adapter: Do not clear job too soon

parent afb82a52
No related branches found
No related tags found
1 merge request!451Adapters: cancel async events on rebind
......@@ -67,8 +67,7 @@ internal class StorageBrowserAdapter(fragment: StorageBrowserFragment) : BaseBro
hasDiscoveredChildren(storagePath) -> vh.binding.browserCheckbox.state = ThreeStatesCheckbox.STATE_PARTIAL
else -> vh.binding.browserCheckbox.state = ThreeStatesCheckbox.STATE_UNCHECKED
}
vh.binding.checkEnabled = !(fragment as StorageBrowserFragment).scannedDirectory
vh.job = null
vh.binding.checkEnabled = !fragment.scannedDirectory
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment