sheepit/flamenco toggle

This commit is contained in:
Nathan
2025-12-17 16:46:35 -07:00
parent 0460865ebc
commit 553758c378
7 changed files with 16425 additions and 44 deletions

View File

@@ -12,6 +12,7 @@ namespace UnifiedFarmLauncher.ViewModels
private WorkerConfig? _selectedWorker;
private string _statusText = "Ready";
private string _selectedWorkerType = "All";
private string _operationMode = "sheepit"; // "sheepit" or "flamenco"
public MainWindowViewModel()
{
@@ -52,6 +53,24 @@ namespace UnifiedFarmLauncher.ViewModels
}
}
public string OperationMode
{
get => _operationMode;
set
{
if (SetAndRaise(ref _operationMode, value))
{
// Notify that dependent properties also changed
OnPropertyChanged(nameof(OperationModeDisplayName));
OnPropertyChanged(nameof(OperationModeIcon));
}
}
}
public string OperationModeDisplayName => OperationMode == "sheepit" ? "SheepIt" : "Flamenco";
public string OperationModeIcon => OperationMode == "sheepit" ? "🐑" : "🔥";
public void LoadWorkers()
{
_configService.Reload();