mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: some functions in TaskHandler had their logic reversed from calls to Task functions. (#2311)
This commit is contained in:
@@ -209,7 +209,7 @@ namespace hex {
|
||||
if (!task)
|
||||
return false;
|
||||
|
||||
return !task->hadException();
|
||||
return task->hadException();
|
||||
}
|
||||
|
||||
bool TaskHolder::shouldInterrupt() const {
|
||||
@@ -217,7 +217,7 @@ namespace hex {
|
||||
if (!task)
|
||||
return false;
|
||||
|
||||
return !task->shouldInterrupt();
|
||||
return task->shouldInterrupt();
|
||||
}
|
||||
|
||||
bool TaskHolder::wasInterrupted() const {
|
||||
@@ -225,7 +225,7 @@ namespace hex {
|
||||
if (!task)
|
||||
return false;
|
||||
|
||||
return !task->wasInterrupted();
|
||||
return task->wasInterrupted();
|
||||
}
|
||||
|
||||
void TaskHolder::interrupt() const {
|
||||
|
||||
Reference in New Issue
Block a user