mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
allow duplicate weapons in cultivation
This commit is contained in:
@@ -133,7 +133,9 @@ internal sealed partial class CultivationService : ICultivationService
|
||||
}
|
||||
|
||||
await taskContext.SwitchToBackgroundAsync();
|
||||
CultivateEntry? entry = cultivationDbService.GetCultivateEntryByProjectIdAndItemId(Projects.CurrentItem.InnerId, itemId);
|
||||
CultivateEntry? entry = type is CultivateType.AvatarAndSkill
|
||||
? cultivationDbService.GetCultivateEntryByProjectIdAndItemId(Projects.CurrentItem.InnerId, itemId)
|
||||
: default;
|
||||
|
||||
if (entry is null)
|
||||
{
|
||||
|
||||
@@ -122,6 +122,7 @@ internal sealed partial class AvatarPropertyViewModel : Abstraction.ViewModel, I
|
||||
{
|
||||
try
|
||||
{
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
IsInitialized = false;
|
||||
ValueResult<RefreshResultKind, Summary?> summaryResult;
|
||||
using (await EnterCriticalSectionAsync().ConfigureAwait(false))
|
||||
@@ -169,6 +170,7 @@ internal sealed partial class AvatarPropertyViewModel : Abstraction.ViewModel, I
|
||||
}
|
||||
finally
|
||||
{
|
||||
await taskContext.SwitchToMainThreadAsync();
|
||||
IsInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user