Commit 7aebb9ca authored by Oleg Korshul's avatar Oleg Korshul

idle check

parent 1dc6944b
...@@ -1568,7 +1568,7 @@ ...@@ -1568,7 +1568,7 @@
return 0; return 0;
// если плагин работает - то и мы тоже // если плагин работает - то и мы тоже
if (this.pluginsManager && this.pluginsManager.current != null) if (this.pluginsManager && this.pluginsManager.isWorked())
return 0; return 0;
if (this.isEmbedVersion) if (this.isEmbedVersion)
......
...@@ -201,6 +201,17 @@ ...@@ -201,6 +201,17 @@
} }
return null; return null;
}, },
isWorked : function()
{
for (var i in this.runnedPluginsMap)
{
if (this.pluginsMap[i] && !this.pluginsMap[i].isSystem)
{
return true;
}
}
return false;
},
run : function(guid, variation, data, isNoUse_isNoSystemPluginsOnlyOne) run : function(guid, variation, data, isNoUse_isNoSystemPluginsOnlyOne)
{ {
if (this.runAndCloseData) // run only on close!!! if (this.runAndCloseData) // run only on close!!!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment