R Optimise refresh

.. don't when not visible as it slows everyone down !
This commit is contained in:
Mark Liversedge
2016-05-09 10:13:15 +01:00
parent 57f2eb10d4
commit b3ca71bfd6

View File

@@ -380,6 +380,9 @@ RChart::setState(QString)
void
RChart::runScript()
{
// don't run until we can be seen!
if (!isVisible()) return;
if (script->toPlainText() != "") {
// run it !!