Windows: Use Cursor.AppStarting instead of Cursor.Wait

This commit is contained in:
2023-09-28 20:09:12 +02:00
parent 2bf850bc55
commit 0e17aa5408
2 changed files with 14 additions and 14 deletions

View File

@ -51,7 +51,7 @@ namespace Elwig.Windows {
}
private async void PdfDeliveryButton_Click(object sender, RoutedEventArgs evt) {
Mouse.OverrideCursor = Cursors.Wait;
Mouse.OverrideCursor = Cursors.AppStarting;
using var ctx = new AppDbContext();
using var doc = new DeliveryNote(await ctx.Deliveries.OrderBy(d => d.Parts.Count).ThenBy(d => d.Year).ThenBy(d => d.DId).LastAsync(), ctx);
await doc.Generate();
@ -60,7 +60,7 @@ namespace Elwig.Windows {
}
private async void PdfCreditButton_Click(object sender, RoutedEventArgs evt) {
Mouse.OverrideCursor = Cursors.Wait;
Mouse.OverrideCursor = Cursors.AppStarting;
using var ctx = new AppDbContext();
using var doc = new CreditNote(await ctx.Credits.FirstAsync(), ctx);
await doc.Generate();