sheepit/flamenco toggle
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user