Remove extra library load and move comments to Main
This commit is contained in:
parent
932472cb91
commit
296c2b43eb
2 changed files with 10 additions and 6 deletions
|
|
@ -50,7 +50,15 @@ namespace LibationWinForms
|
|||
// migrations which require Forms or are long-running
|
||||
RunWindowsOnlyMigrations(config);
|
||||
|
||||
//start loading the db as soon as possible
|
||||
//*******************************************************************//
|
||||
// //
|
||||
// Start loading the library as soon as possible //
|
||||
// //
|
||||
// Before calling anything else, including subscribing to events, //
|
||||
// to ensure database exists. If we wait and let it happen lazily, //
|
||||
// race conditions and errors are likely during new installs //
|
||||
// //
|
||||
//*******************************************************************//
|
||||
libraryLoadTask = Task.Run(() => DbContexts.GetLibrary_Flat_NoTracking(includeParents: true));
|
||||
|
||||
MessageBoxLib.VerboseLoggingWarning_ShowIfTrue();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue