1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 14:38:34 +01:00

removed null propagation here because I never really use it anywhere else and it's ugly

This commit is contained in:
Ellpeck 2019-08-25 21:58:01 +02:00
parent 765acc3f62
commit 38d72d981a

View file

@ -97,10 +97,12 @@ namespace MLEM.Ui {
} }
// first action on element // first action on element
mousedNow?.OnPressed?.Invoke(mousedNow); if (mousedNow != null)
mousedNow.OnPressed?.Invoke(mousedNow);
} else if (this.InputHandler.IsMouseButtonPressed(this.SecondaryButton)) { } else if (this.InputHandler.IsMouseButtonPressed(this.SecondaryButton)) {
// secondary action on element // secondary action on element
mousedNow?.OnSecondaryPressed?.Invoke(mousedNow); if (mousedNow != null)
mousedNow.OnSecondaryPressed?.Invoke(mousedNow);
} }
// generic element click // generic element click