Skip to content

Commit

Permalink
small fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
isivisi committed Nov 4, 2023
1 parent d58faf2 commit 4ba9e12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/syncmute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ struct SyncMute : QuestionableModule {
bool isControlledLeft() {
SyncMute* left = getExpander(true);
if (expanderLeft) return false;
if (left && left->model == this->model && left->expanderRight) return true;
if (left && left->expanderRight) return true;
return false;
}

bool isControlledRight() {
SyncMute* right = getExpander(false);
if (expanderRight) return false;
if (right && right->model == this->model && right->expanderRight) return true;
if (right && right->expanderLeft) return true;
return false;
}

Expand All @@ -179,7 +179,7 @@ struct SyncMute : QuestionableModule {

SyncMute* getExpander(bool left) {
Module* expander = left ? getLeftExpander().module : getRightExpander().module;
if (expander != nullptr) return (SyncMute*)expander;
if (expander != nullptr && expander->model == this->model) return (SyncMute*)expander;
return nullptr;
}

Expand Down

0 comments on commit 4ba9e12

Please sign in to comment.