~renatofilho/ubuntu-calendar-app/optimize

« back to all changes in this revision

Viewing changes to TimeLineBase.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-02-24 21:02:03 UTC
  • Revision ID: renato.filho@canonical.com-20160224210203-prrg85m9cw70wg3f
Only update model events when PathView stop to move.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
        source: "EventLayoutHelper.js"
178
178
        onMessage: {
179
179
            // check if anything changed during the process
180
 
            if (intern.dirty) {
181
 
                console.debug("Something has changed while work script was running, ignore message")
 
180
            if (intern.dirty || !autoUpdate) {
 
181
                if (intern.dirty) {
 
182
                    console.debug("Something has changed while work script was running, ignore message")
 
183
                } else {
 
184
                    console.debug("Layout canceled")
 
185
                }
182
186
                // if something changed ignore new layout and re-create the bubbles
183
187
            } else {
184
188
                console.debug("Work script message received Nothin changed.")
211
215
    }
212
216
 
213
217
    function createEvents() {
214
 
        console.debug("Draw requested:" + bubbleOverLay)
215
218
        if(!bubbleOverLay || bubbleOverLay == undefined || model === undefined || model === null) {
216
219
            return;
217
220
        }