Reworked about page

fixes #167
This commit is contained in:
FelixSe committed 2019-09-12 22:11:36 +02:00
1 parent 912dddaa6c
commit 3bf35c4d5d
26 files changed
+438 -260

No files matched your search

@@ -1,6 +1,7 @@
using FluentTerminal.App.Services;
using FluentTerminal.App.Services.EventArgs;
using FluentTerminal.App.Services.Utilities;
using FluentTerminal.App.ViewModels.Infrastructure;
using FluentTerminal.Models;
using FluentTerminal.Models.Enums;
using GalaSoft.MvvmLight;
@@ -97,7 +98,7 @@ namespace FluentTerminal.App.ViewModels
AddLocalShellCommand = new RelayCommand(async () => await AddLocalTabAsync());
AddSshShellCommand = new RelayCommand(async () => await AddSshTabAsync());
AddQuickShellCommand = new RelayCommand(async () => await AddCustomCommandTabAsync());
ShowAboutCommand = new RelayCommand(ShowAbout);
ShowAboutCommand = new AsyncCommand(ShowAbout);
ShowSettingsCommand = new RelayCommand(ShowSettings);
ApplicationView.CloseRequested += OnCloseRequest;
@@ -163,8 +164,6 @@ namespace FluentTerminal.App.ViewModels
public event EventHandler ShowSettingsRequested;
public event EventHandler ShowAboutRequested;
public event EventHandler ActivatedMv;
public event EventHandler<TerminalViewModel> TabTearedOff;
@@ -245,7 +244,7 @@ namespace FluentTerminal.App.ViewModels
}
}
public RelayCommand ShowAboutCommand { get; private set; }
public IAsyncCommand ShowAboutCommand { get; private set; }
public RelayCommand ShowSettingsCommand { get; private set; }
@@ -611,9 +610,9 @@ namespace FluentTerminal.App.ViewModels
SelectedTerminal = Terminals[previousIndex];
}
private void ShowAbout()
private Task ShowAbout()
{
ShowAboutRequested?.Invoke(this, EventArgs.Empty);
return _dialogService.ShowAboutDialogAsync();
}
private void ShowSettings()