Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
Refreshing gui labels after setting Presets to None or Empty - fixed #…
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagoda committed May 20, 2020
1 parent 78d94f4 commit 4c1ba93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/axiseditdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ void AxisEditDialog::implementAxisPresets(int index)
pbuttonslot = new JoyButtonSlot(AntKeyMapper::getInstance()->returnVirtualKey(QtKeyMapperBase::AntKey_KP_6), QtKeyMapperBase::AntKey_KP_6, JoyButtonSlot::JoyKeyboard, this);
break;

case 0:
case 11:
JoyAxisButton *nbutton = m_axis->getNAxisButton();
JoyAxisButton *pbutton = m_axis->getPAxisButton();
Expand All @@ -259,6 +260,9 @@ void AxisEditDialog::implementAxisPresets(int index)

refreshNButtonLabel();
refreshPButtonLabel();

nbutton->buildActiveZoneSummaryString();
pbutton->buildActiveZoneSummaryString();
break;

}
Expand Down

0 comments on commit 4c1ba93

Please sign in to comment.