add optional restart save timeout
This commit is contained in:
@@ -121,6 +121,9 @@ public class TorchConfig : ViewModel, ITorchConfig
|
||||
|
||||
[Display(Name = "Packages", Description = "Packages to install and use.", GroupName = "Server")]
|
||||
public List<string> Packages { get; set; } = new();
|
||||
|
||||
[Display(Name = "Restart Save Timeout", Description = "Timeout for save operation on restart in seconds.", GroupName = "Server")]
|
||||
public int RestartSaveTimeout { get; set; }
|
||||
|
||||
// for backward compatibility
|
||||
public void Save(string path = null) => Initializer.Instance?.ConfigPersistent?.Save(path);
|
||||
|
Reference in New Issue
Block a user