mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Ignore OCR errors in Watchdog
This commit is contained in:
parent
348c2148dd
commit
43eeecac97
1 changed files with 4 additions and 0 deletions
|
@ -138,6 +138,10 @@ void Watchdog::launchGame(const ProfileSettings &settings, LoginAuth auth) {
|
|||
} else {
|
||||
auto result = parser->parseImage(qimageFromXImage(image));
|
||||
if (result != lastResult) {
|
||||
// skip OCR errors (TODO: should be handled by GameParser itself)
|
||||
if(result.state == ScreenState::InLoginQueue && result.playersInQueue == 0)
|
||||
return;
|
||||
|
||||
switch (result.state) {
|
||||
case ScreenState::InLoginQueue: {
|
||||
icon->showMessage("Watchdog",
|
||||
|
|
Loading…
Add table
Reference in a new issue