Skip to content

Fix delay when opening and closing a document

Basically, we shouldn't reset all the models when we add/remove a storage, we have all the information necessary for a graceful update. Document creation/closing time drops from 900ms to 300ms.

Limitations of the patch:

  • it fixes only the case when the user has no tag selected

Still TODO:

  • implement the same updates for KisAllTagResourceModel
  • implement proper updates for the case when we disable/enable a source, right now it causes full reset as well (somewhat fixed in the second patch)

CCBUG:447298

Edited by Dmitry Kazakov

Merge request reports