ui(manager): improve search bindings
This commit is contained in:
@@ -3,6 +3,7 @@ using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Media;
|
||||
using DynamicData;
|
||||
using ModpackUpdater.Apps.Manager.Api;
|
||||
using ModpackUpdater.Apps.Manager.Api.Model;
|
||||
using ModpackUpdater.Apps.Manager.Api.Plugins.Features;
|
||||
@@ -129,7 +130,7 @@ public partial class MainWindow : Window, IMainApi
|
||||
private async void Window_OnLoaded(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
var updater = new AppUpdates(Program.UpdateUrl, this);
|
||||
updater.OnDownloadProgramUpdate += (o, args) => Model.Progress.Start();
|
||||
updater.OnDownloadProgramUpdate += (o, _) => Model.Progress.Start();
|
||||
await updater.UpdateApp();
|
||||
Model.Progress.Stop();
|
||||
|
||||
@@ -239,7 +240,7 @@ public partial class MainWindow : Window, IMainApi
|
||||
return;
|
||||
}
|
||||
|
||||
rows.Add(new MainWindowGridRow(action, rootInfos));
|
||||
rows.List.Add(new MainWindowGridRow(action, rootInfos));
|
||||
}
|
||||
|
||||
private void ButtonRemoveAction_OnClick(object? sender, RoutedEventArgs e)
|
||||
@@ -262,6 +263,6 @@ public partial class MainWindow : Window, IMainApi
|
||||
return;
|
||||
}
|
||||
|
||||
rows.Remove(row);
|
||||
rows.List.Remove(row);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user