mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
29 lines
849 B
C#
29 lines
849 B
C#
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||
|
|
using CommunityToolkit.Mvvm.Input;
|
||
|
|
using Flow.Launcher.Infrastructure;
|
||
|
|
using System.Diagnostics;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace Flow.Launcher.Avalonia.ViewModel.SettingPages;
|
||
|
|
|
||
|
|
public partial class AboutSettingsViewModel : ObservableObject
|
||
|
|
{
|
||
|
|
public string Version => Constant.Version;
|
||
|
|
public string Website => "https://www.flowlauncher.com";
|
||
|
|
public string GitHub => "https://github.com/Flow-Launcher/Flow.Launcher";
|
||
|
|
|
||
|
|
[RelayCommand]
|
||
|
|
private async Task OpenWebsite()
|
||
|
|
{
|
||
|
|
Process.Start(new ProcessStartInfo(Website) { UseShellExecute = true });
|
||
|
|
await Task.CompletedTask;
|
||
|
|
}
|
||
|
|
|
||
|
|
[RelayCommand]
|
||
|
|
private async Task OpenGitHub()
|
||
|
|
{
|
||
|
|
Process.Start(new ProcessStartInfo(GitHub) { UseShellExecute = true });
|
||
|
|
await Task.CompletedTask;
|
||
|
|
}
|
||
|
|
}
|