mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Workshop - Reworked installation management
This commit is contained in:
1 parent
d6f1ba9aad
commit
6b4ed48d05
28 files changed
+514
-197
No files matched your search
@@ -20,4 +20,6 @@ public interface IWorkshopService
|
||||
void Initialize();
|
||||
|
||||
public record WorkshopStatus(bool IsReachable, string Message);
|
||||
|
||||
event EventHandler<InstalledEntry>? OnInstalledEntrySaved;
|
||||
}
|
||||
@@ -172,6 +172,8 @@ public class WorkshopService : IWorkshopService
|
||||
{
|
||||
entry.Save();
|
||||
_entryRepository.Save(entry.Entity);
|
||||
|
||||
OnInstalledEntrySaved?.Invoke(this, entry);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -231,4 +233,6 @@ public class WorkshopService : IWorkshopService
|
||||
_logger.Warning(e, "Failed to remove orphaned workshop entry at {Directory}", directory);
|
||||
}
|
||||
}
|
||||
|
||||
public event EventHandler<InstalledEntry>? OnInstalledEntrySaved;
|
||||
}
|
||||
Reference in new issue
Block a user