Fixed cross-thread access error.

This commit is contained in:
Michael Bucari-Tovo 2022-05-09 21:31:21 -06:00
parent 81c152ddcb
commit 138f94594f

View File

@ -262,8 +262,8 @@ namespace LibationWinForms
.Where(a => a.LibraryScan) .Where(a => a.LibraryScan)
.ToArray(); .ToArray();
// in autoScan, new books SHALL NOT show dialog // in autoScan, new books SHALL NOT show dialog
await LibraryCommands.ImportAccountAsync(Login.WinformLoginChoiceEager.ApiExtendedFunc, accounts); await Invoke(async () => await LibraryCommands.ImportAccountAsync(Login.WinformLoginChoiceEager.ApiExtendedFunc, accounts));
}; };
// load init state to menu checkbox // load init state to menu checkbox