Refactor Status struct

This commit is contained in:
2025-10-16 20:15:22 +02:00
parent e0ec00d141
commit 5afc22924f
4 changed files with 125 additions and 49 deletions

View File

@@ -289,7 +289,7 @@ func (im *instanceManager) loadInstance(name, path string) error {
// Restore persisted fields that NewInstance doesn't set
inst.Created = persistedInstance.Created
inst.SetStatus(persistedInstance.Status)
inst.SetStatus(persistedInstance.GetStatus())
// Handle remote instance mapping
if isRemote {

View File

@@ -39,7 +39,7 @@ func (im *instanceManager) updateLocalInstanceFromRemote(localInst *instance.Ins
// Update the local instance with all remote data
localInst.SetOptions(&updatedOptions)
localInst.Status = remoteInst.Status
localInst.SetStatus(remoteInst.GetStatus())
localInst.Created = remoteInst.Created
}