1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00

Use explicit primitive type specification

This commit is contained in:
Dean Herbert 2021-11-04 16:02:37 +09:00
parent 0f4f1349db
commit 09701d0af1

View File

@ -114,7 +114,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (selectionPerformed)
{
// only unmodified right click should show context menu
var shouldShowContextMenu = e.Button == MouseButton.Right && !e.ShiftPressed && !e.AltPressed && !e.SuperPressed;
bool shouldShowContextMenu = e.Button == MouseButton.Right && !e.ShiftPressed && !e.AltPressed && !e.SuperPressed;
// stop propagation if not showing context menu
return !shouldShowContextMenu;