move SheepIt settings to global settings

This commit is contained in:
Nathan
2025-12-17 16:19:08 -07:00
parent 03b3ae58f4
commit 202ad49f48
11 changed files with 268 additions and 34 deletions

View File

@@ -16,8 +16,6 @@ namespace UnifiedFarmLauncher.ViewModels
private int _sshPort = 22;
private string _sshArgs = string.Empty;
private string _sheepItGpu = "OPTIX_0";
private string _sheepItUsername = string.Empty;
private string _sheepItRenderKey = string.Empty;
private string _flamencoWorkerPath = string.Empty;
private bool _hasSheepIt;
private bool _hasFlamenco;
@@ -93,18 +91,6 @@ namespace UnifiedFarmLauncher.ViewModels
set => SetAndRaise(ref _sheepItGpu, value);
}
public string SheepItUsername
{
get => _sheepItUsername;
set => SetAndRaise(ref _sheepItUsername, value);
}
public string SheepItRenderKey
{
get => _sheepItRenderKey;
set => SetAndRaise(ref _sheepItRenderKey, value);
}
public string FlamencoWorkerPath
{
get => _flamencoWorkerPath;
@@ -127,8 +113,6 @@ namespace UnifiedFarmLauncher.ViewModels
{
HasSheepIt = true;
SheepItGpu = worker.WorkerTypes.SheepIt.Gpu;
SheepItUsername = worker.WorkerTypes.SheepIt.Username;
SheepItRenderKey = worker.WorkerTypes.SheepIt.RenderKey;
}
if (worker.WorkerTypes.Flamenco != null)
@@ -168,9 +152,7 @@ namespace UnifiedFarmLauncher.ViewModels
{
worker.WorkerTypes.SheepIt = new SheepItConfig
{
Gpu = SheepItGpu,
Username = SheepItUsername,
RenderKey = SheepItRenderKey
Gpu = SheepItGpu
};
}