Skip to content

Commit

Permalink
Fixed so that IPersistanceManager.Load is run first at OnStartup so t…
Browse files Browse the repository at this point in the history
…hat OnUnhandledException is invoked if exception happens in Load
  • Loading branch information
AndersMalmgren committed Mar 25, 2014
1 parent ed1e5d3 commit d555a99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FreePIE.GUI/Bootstrap/BootStrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ protected override void Configure()
kernel.Bind<IPaths>().To<UacCompliantPaths>().InSingletonScope();

SetupCustomMessageBindings();
}

protected override void OnStartup(object sender, StartupEventArgs e)
{
kernel.Get<IPersistanceManager>().Load();

base.OnStartup(sender, e);
}

protected override object GetInstance(Type service, string key)
Expand Down

0 comments on commit d555a99

Please sign in to comment.