Revert "make auto-scan more fault-tolerant"
This reverts commit f802d1524f.
This commit is contained in:
parent
7fec8b0d7e
commit
fd7c833de0
1 changed files with 1 additions and 12 deletions
|
|
@ -33,18 +33,7 @@ namespace LibationWinForms
|
|||
.ToArray();
|
||||
|
||||
// in autoScan, new books SHALL NOT show dialog
|
||||
try
|
||||
{
|
||||
Task importAsync() => LibraryCommands.ImportAccountAsync(Login.WinformLoginChoiceEager.ApiExtendedFunc, accounts);
|
||||
if (InvokeRequired)
|
||||
await Invoke(importAsync);
|
||||
else
|
||||
await importAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Serilog.Log.Logger.Error(ex, "Error invoking auto-scan");
|
||||
}
|
||||
await Invoke(async () => await LibraryCommands.ImportAccountAsync(Login.WinformLoginChoiceEager.ApiExtendedFunc, accounts));
|
||||
};
|
||||
|
||||
// load init state to menu checkbox
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue