void AutoOnline::Check() { bool running = IsPoeRunning(); if (running || previous_status_) { SendOnlineUpdate(running); } previous_status_ = running; emit Update(running); }
void AutoOnline::Check() { bool running = is_poe_running_locally(); if (IsRemoteScriptSet()){ running = is_poe_running_remotely(process_script_); } else { running = is_poe_running_locally(); } if (running || previous_status_) { SendOnlineUpdate(running); } previous_status_ = running; emit Update(running); }