Skip to content

Commit 7e1d250

Browse files
gave92Marco Gavelli
authored andcommitted
Minor change
1 parent ea52bf8 commit 7e1d250

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/Files.App/ViewModels/MainPageViewModel.cs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ public MainPageViewModel()
214214
IsTerminalViewOpen = false;
215215
OnPropertyChanged(nameof(ActiveTerminal));
216216
});
217-
TerminalSelectedProfile = TerminalProfiles[0];
218217

219218
AppearanceSettingsService.PropertyChanged += (s, e) =>
220219
{
@@ -467,6 +466,8 @@ private async void ExecuteNavigateToNumberedTabKeyboardAcceleratorCommand(Keyboa
467466

468467
public List<ShellProfile> TerminalProfiles => new DefaultValueProvider().GetPreinstalledShellProfiles().ToList();
469468

469+
public ShellProfile TerminalSelectedProfile => TerminalProfiles[0]; // TODO: selectable in settings
470+
470471
public bool IsTerminalIntegrationEnabled => GeneralSettingsService.IsTerminalIntegrationEnabled;
471472

472473
private bool _isTerminalViewOpen;
@@ -476,8 +477,6 @@ public bool IsTerminalViewOpen
476477
set => SetProperty(ref _isTerminalViewOpen, value);
477478
}
478479

479-
public Control? ActiveTerminal => SelectedTerminal >= 0 && SelectedTerminal < Terminals.Count ? Terminals[SelectedTerminal].Control : null;
480-
481480
public ObservableCollection<TerminalModel> Terminals { get; } = new();
482481

483482
private int _selectedTerminal;
@@ -492,15 +491,6 @@ public int SelectedTerminal
492491
}
493492
}
494493

495-
private ShellProfile _terminalSelectedProfile;
496-
public ShellProfile TerminalSelectedProfile
497-
{
498-
get => _terminalSelectedProfile;
499-
set
500-
{
501-
if (value is not null)
502-
SetProperty(ref _terminalSelectedProfile, value);
503-
}
504-
}
494+
public Control? ActiveTerminal => SelectedTerminal >= 0 && SelectedTerminal < Terminals.Count ? Terminals[SelectedTerminal].Control : null;
505495
}
506496
}

0 commit comments

Comments
 (0)