[mkcal] Don't emit storageModified on notebook change. #64
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Like for events, there is no need to ask for
a complete calendar reset on a notebook change
since the modifications are known by the caller.
storageModified should be restricted for out
of process changes.
@pvuorela, since we're at cleaning mKCal API and behaviour, I would like to update the emitted signals on notebook changes. Currently a
storageModified()
signal is emitted, which means for clients "unknown database changes, please reset everything and reload". At first I wanted to create a new signal like the one existing for events (storageUpdated()
) to notify for the notebook change, but I think there is no need. Clients making notebook changes know the change done since the API is synchronous in contrary to the event one which piles up changes done to the calendar and commit with thesave()
call.In practice, the only client that requires to update something on a notebook change is the QML binding one. As far as I know, the Buteo sync plugins don't wait for a calendar wipe out on a notebook change. So I'm creating sailfishos/nemo-qml-plugin-calendar#58 to handle this.