Skip to content

Commit

Permalink
fix: Clearing button does not change label
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Aug 15, 2022
1 parent 3b49e06 commit 98e4df0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/joybutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3067,13 +3067,14 @@ void JoyButton::removeAssignedSlot(int index)

void JoyButton::clearSlotsEventReset(bool clearSignalEmit)
{
QWriteLocker tempAssignLocker(&assignmentsLock);

assignmentsLock.lockForWrite();
resetSlotsProp();
stopTimers(false);
releaseActiveSlots();
clearAssignedSlots(clearSignalEmit);
clearQueues();
assignmentsLock.unlock();
buildActiveZoneSummaryString();
DEBUG() << "all current slots and previous slots ale cleared";
}

Expand Down

0 comments on commit 98e4df0

Please sign in to comment.