Skip to content

Commit

Permalink
Ugly fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Aug 15, 2022
1 parent 46d76eb commit 3f161a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/joybuttoncontextmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,8 @@ void JoyButtonContextMenu::disableSetMode()
PadderCommon::inputDaemonMutex.unlock();
}

void JoyButtonContextMenu::clearButton() { QMetaObject::invokeMethod(button, "clearSlotsEventReset"); }
void JoyButtonContextMenu::clearButton()
{
QMetaObject::invokeMethod(button, "clearSlotsEventReset");
QMetaObject::invokeMethod(button, "buildActiveZoneSummaryString");
}
1 change: 1 addition & 0 deletions src/uihelpers/dpadcontextmenuhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ void DPadContextMenuHelper::clearButtonsSlotsEventReset()
{
JoyDPadButton *button = iter.next().value();
button->clearSlotsEventReset();
QMetaObject::invokeMethod(button, "buildActiveZoneSummaryString");
}
}

Expand Down

0 comments on commit 3f161a5

Please sign in to comment.