// The backend update can take some time so we disable
// the controls while waiting.
enableControls(false);
- gui_view_.tocModels().updateBackend();
+ gui_view_.currentBufferView()->buffer().updateBuffer();
}
if (update_delay_ == -1)
return;
QTimer::singleShot(update_delay_, this, SLOT(updateViewForce()));
+ // Subtler optimization for having the delay more UI invisible.
+ // We trigger update immediately for sparse editation actions,
+ // i.e. there was no editation/cursor movement in last 2 sec.
+ // At worst there will be +1 redraw after 2s in a such "calm" mode.
+ if (update_delay_ != 0)
+ updateViewForce();
update_delay_ = -1;
}