Remove custom ContextMenu and replace with MudMenu

This commit is contained in:
ahjephson
2025-10-20 13:30:40 +01:00
parent 300e81345c
commit 2ad7be1073
13 changed files with 31 additions and 347 deletions

View File

@@ -68,7 +68,7 @@ namespace Lantean.QBTMud.Pages
protected Torrent? ContextMenuItem { get; set; }
protected ContextMenu? ContextMenu { get; set; }
protected MudMenu? ContextMenu { get; set; }
private object? _lastRenderedTorrents;
private QBitTorrentClient.Models.Preferences? _lastPreferences;
@@ -272,7 +272,7 @@ namespace Lantean.QBTMud.Pages
return;
}
await ContextMenu.ToggleMenuAsync(eventArgs);
await ContextMenu.OpenMenuAsync(eventArgs);
}
protected IEnumerable<ColumnDefinition<Torrent>> Columns => ColumnsDefinitions.Where(c => c.Id != "#" || Preferences?.QueueingEnabled == true);