mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Resurrects soft deleted themes when they are reinstalled
This commit is contained in:
1 parent
6bb3449d4f
commit
88db2e0801
1 file changed
+2
-1
+2
-1
@@ -103,7 +103,8 @@ public class InstallThemeCommandHandler : ICommandHandler<InstallThemeCommand, R
|
|||||||
PreviewPath = manifest.Preview,
|
PreviewPath = manifest.Preview,
|
||||||
InstallSource = existingTheme.InstallSource,
|
InstallSource = existingTheme.InstallSource,
|
||||||
IsCurrent = existingTheme.IsCurrent,
|
IsCurrent = existingTheme.IsCurrent,
|
||||||
IsDeleted = existingTheme.IsDeleted,
|
// reinstalling a theme must bring it back even if it was soft deleted before, so the uploaded pack becomes visible again
|
||||||
|
IsDeleted = false,
|
||||||
InstalledAtUtc = DateTime.UtcNow,
|
InstalledAtUtc = DateTime.UtcNow,
|
||||||
CreatedOnUtc = existingTheme.CreatedOnUtc,
|
CreatedOnUtc = existingTheme.CreatedOnUtc,
|
||||||
CreatedBy = existingTheme.CreatedBy,
|
CreatedBy = existingTheme.CreatedBy,
|
||||||
|
|||||||
Reference in new issue
Block a user