diff --git a/LibationCli/Options/ScanOptions.cs b/LibationCli/Options/ScanOptions.cs index 58ee3d81..5f1be8e3 100644 --- a/LibationCli/Options/ScanOptions.cs +++ b/LibationCli/Options/ScanOptions.cs @@ -35,7 +35,8 @@ namespace LibationCli var (TotalBooksProcessed, NewBooksAdded) = await LibraryCommands.ImportAccountAsync((a) => ApiExtended.CreateAsync(a), _accounts); Console.WriteLine("Scan complete."); - Console.WriteLine($"Total processed: {TotalBooksProcessed}\r\nNew: {NewBooksAdded}"); + Console.WriteLine($"Total processed: {TotalBooksProcessed}"); + Console.WriteLine($"New: {NewBooksAdded}"); } private Account[] getAccounts() diff --git a/LibationWinForms/Dialogs/IndexLibraryDialog.cs b/LibationWinForms/Dialogs/IndexLibraryDialog.cs index 063d3dd2..f674161d 100644 --- a/LibationWinForms/Dialogs/IndexLibraryDialog.cs +++ b/LibationWinForms/Dialogs/IndexLibraryDialog.cs @@ -31,7 +31,7 @@ namespace LibationWinForms.Dialogs try { - (TotalBooksProcessed, NewBooksAdded) = await LibraryCommands.ImportAccountAsync((account) => ApiExtended.CreateAsync(account, new WinformLoginChoiceEager(account)), _accounts); + (TotalBooksProcessed, NewBooksAdded) = await LibraryCommands.ImportAccountAsync(account => ApiExtended.CreateAsync(account, new WinformLoginChoiceEager(account)), _accounts); } catch (Exception ex) { diff --git a/LibationWinForms/Form1.cs b/LibationWinForms/Form1.cs index 86b9b510..e8108614 100644 --- a/LibationWinForms/Form1.cs +++ b/LibationWinForms/Form1.cs @@ -61,7 +61,7 @@ namespace LibationWinForms // suppressed filter while init'ing UI var prev_isProcessingGridSelect = isProcessingGridSelect; isProcessingGridSelect = true; - this.UIThreadSync(() => setGrid()); + this.UIThreadSync(setGrid); isProcessingGridSelect = prev_isProcessingGridSelect; // UI init complete. now we can apply filter