mirror of
https://github.com/ppy/osu.git
synced 2025-03-18 02:47:19 +08:00
Add PostImport
method matching PreImport
This commit is contained in:
parent
45c5013f09
commit
e732c5a2d7
@ -338,6 +338,8 @@ namespace osu.Game.Database
|
||||
transaction.Commit();
|
||||
}
|
||||
|
||||
PostImport(item, realm);
|
||||
|
||||
LogForModel(item, @"Import successfully completed!");
|
||||
}
|
||||
catch (Exception e)
|
||||
@ -473,6 +475,15 @@ namespace osu.Game.Database
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Perform any final actions after the import has been committed to the database.
|
||||
/// </summary>
|
||||
/// <param name="model">The model prepared for import.</param>
|
||||
/// <param name="realm">The current realm context.</param>
|
||||
protected virtual void PostImport(TModel model, Realm realm)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Check whether an existing model already exists for a new import item.
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user