Fix walkthrough errors on chardonnay.
This commit is contained in:
parent
9f0f32a462
commit
82a48db57b
@ -5,6 +5,7 @@ using Avalonia.Controls.Presenters;
|
|||||||
using Avalonia.Controls.Primitives;
|
using Avalonia.Controls.Primitives;
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
using Avalonia.Styling;
|
using Avalonia.Styling;
|
||||||
|
using Dinah.Core;
|
||||||
using Dinah.Core.StepRunner;
|
using Dinah.Core.StepRunner;
|
||||||
using LibationAvalonia.Dialogs;
|
using LibationAvalonia.Dialogs;
|
||||||
using LibationAvalonia.Views;
|
using LibationAvalonia.Views;
|
||||||
@ -164,7 +165,8 @@ namespace LibationAvalonia
|
|||||||
{
|
{
|
||||||
//if we imported new books, wait for the grid to update before proceeding.
|
//if we imported new books, wait for the grid to update before proceeding.
|
||||||
if (newCount > 0)
|
if (newCount > 0)
|
||||||
MainForm.ViewModel.ProductsDisplay.VisibleCountChanged += productsDisplay_VisibleCountChanged;
|
Avalonia.Threading.Dispatcher.UIThread.Invoke(() =>
|
||||||
|
MainForm.ViewModel.ProductsDisplay.VisibleCountChanged += productsDisplay_VisibleCountChanged);
|
||||||
else
|
else
|
||||||
tcs.SetResult();
|
tcs.SetResult();
|
||||||
}
|
}
|
||||||
@ -176,7 +178,7 @@ namespace LibationAvalonia
|
|||||||
var books = DbContexts.GetLibrary_Flat_NoTracking();
|
var books = DbContexts.GetLibrary_Flat_NoTracking();
|
||||||
if (books.Count == 0) return true;
|
if (books.Count == 0) return true;
|
||||||
|
|
||||||
var firstAuthor = getFirstAuthor();
|
var firstAuthor = getFirstAuthor()?.SurroundWithQuotes();
|
||||||
if (firstAuthor == null) return true;
|
if (firstAuthor == null) return true;
|
||||||
|
|
||||||
if (!await ProceedMessageBox("You can filter the grid entries by searching", "Searching"))
|
if (!await ProceedMessageBox("You can filter the grid entries by searching", "Searching"))
|
||||||
@ -193,7 +195,7 @@ namespace LibationAvalonia
|
|||||||
|
|
||||||
await displayControlAsync(MainForm.filterBtn);
|
await displayControlAsync(MainForm.filterBtn);
|
||||||
|
|
||||||
MainForm.filterBtn.Command.Execute(null);
|
MainForm.filterBtn.Command.Execute(firstAuthor);
|
||||||
|
|
||||||
await Task.Delay(1000);
|
await Task.Delay(1000);
|
||||||
|
|
||||||
@ -209,8 +211,7 @@ namespace LibationAvalonia
|
|||||||
|
|
||||||
private async Task<bool> ShowQuickFilters()
|
private async Task<bool> ShowQuickFilters()
|
||||||
{
|
{
|
||||||
var firstAuthor = getFirstAuthor();
|
var firstAuthor = getFirstAuthor()?.SurroundWithQuotes();
|
||||||
|
|
||||||
if (firstAuthor == null) return true;
|
if (firstAuthor == null) return true;
|
||||||
|
|
||||||
if (!await ProceedMessageBox("Queries that you perform regularly can be added to 'Quick Filters'", "Quick Filters"))
|
if (!await ProceedMessageBox("Queries that you perform regularly can be added to 'Quick Filters'", "Quick Filters"))
|
||||||
@ -222,7 +223,7 @@ namespace LibationAvalonia
|
|||||||
|
|
||||||
await Task.Delay(750);
|
await Task.Delay(750);
|
||||||
await displayControlAsync(MainForm.addQuickFilterBtn);
|
await displayControlAsync(MainForm.addQuickFilterBtn);
|
||||||
MainForm.addQuickFilterBtn.Command.Execute(null);
|
MainForm.addQuickFilterBtn.Command.Execute(firstAuthor);
|
||||||
await displayControlAsync(MainForm.quickFiltersToolStripMenuItem);
|
await displayControlAsync(MainForm.quickFiltersToolStripMenuItem);
|
||||||
await displayControlAsync(editQuickFiltersToolStripMenuItem);
|
await displayControlAsync(editQuickFiltersToolStripMenuItem);
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
using ApplicationServices;
|
using ApplicationServices;
|
||||||
using AudibleUtilities;
|
using AudibleUtilities;
|
||||||
|
using Dinah.Core;
|
||||||
using Dinah.Core.StepRunner;
|
using Dinah.Core.StepRunner;
|
||||||
using LibationFileManager;
|
using LibationFileManager;
|
||||||
using LibationWinForms.Dialogs;
|
using LibationWinForms.Dialogs;
|
||||||
@ -163,7 +164,7 @@ namespace LibationWinForms
|
|||||||
var books = DbContexts.GetLibrary_Flat_NoTracking();
|
var books = DbContexts.GetLibrary_Flat_NoTracking();
|
||||||
if (books.Count == 0) return true;
|
if (books.Count == 0) return true;
|
||||||
|
|
||||||
var firstAuthor = getFirstAuthor();
|
var firstAuthor = getFirstAuthor()?.SurroundWithQuotes();
|
||||||
if (firstAuthor == null) return true;
|
if (firstAuthor == null) return true;
|
||||||
|
|
||||||
if (!ProceedMessageBox("You can filter the grid entries by searching", "Searching"))
|
if (!ProceedMessageBox("You can filter the grid entries by searching", "Searching"))
|
||||||
@ -196,7 +197,7 @@ namespace LibationWinForms
|
|||||||
|
|
||||||
private async Task<bool> ShowQuickFilters()
|
private async Task<bool> ShowQuickFilters()
|
||||||
{
|
{
|
||||||
var firstAuthor = getFirstAuthor();
|
var firstAuthor = getFirstAuthor()?.SurroundWithQuotes();
|
||||||
if (firstAuthor == null) return true;
|
if (firstAuthor == null) return true;
|
||||||
|
|
||||||
if (!ProceedMessageBox("Queries that you perform regularly can be added to 'Quick Filters'", "Quick Filters"))
|
if (!ProceedMessageBox("Queries that you perform regularly can be added to 'Quick Filters'", "Quick Filters"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user