Skip to content

Commit

Permalink
Fix No gesture screen not showing after deleting all gestures
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrcubix committed May 5, 2024
1 parent 677344d commit 9ec80f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Touch-Gestures.UX/ViewModels/BindingsOverviewViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,12 @@ private async Task OnDeletionRequested(object? sender, EventArgs e)
if (!res)
return;

SelectedTabletIndex = Math.Min(SelectedTabletIndex, Tablets.Count - 2);
//SelectedTabletIndex = Math.Min(SelectedTabletIndex, Tablets.Count - 2);

SelectedTablet.Remove(bindingDisplay);

IsEmpty = !SelectedTablet.Gestures.Any();

ProfileChanged?.Invoke(this, SelectedTablet.Profile);
}

Expand Down

0 comments on commit 9ec80f8

Please sign in to comment.