mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-21 15:54:58 +01:00
Join the user ini path in the tests the way the starter does
The tests spelled it with slashes and failed on the Windows runner, where Path.Combine uses backslashes. Also drops a null warning in the drag code.
This commit is contained in:
@@ -104,9 +104,9 @@ public sealed class ConsistDragging
|
||||
|
||||
public void MiniPreviewPressed(object? sender, PointerPressedEventArgs e)
|
||||
{
|
||||
if (_browserSelected() is null || !e.GetCurrentPoint(miniPreviewPanel).Properties.IsLeftButtonPressed)
|
||||
if (_browserSelected() is not { } texture || !e.GetCurrentPoint(miniPreviewPanel).Properties.IsLeftButtonPressed)
|
||||
return;
|
||||
ArmVehicleDrag(e, miniPreviewPanel, _browserSelected());
|
||||
ArmVehicleDrag(e, miniPreviewPanel, texture);
|
||||
}
|
||||
|
||||
public void VehicleListPressed(object? sender, PointerPressedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user