diff --git a/UI/ViewModels/SettingPageVM.cs b/UI/ViewModels/SettingPageVM.cs index 943e75a4ab4a05523ef8f7a847902e0ffc19008d..bb66ad55e8bcb2ef87804ab2e82a35c84b44d77a 100644 --- a/UI/ViewModels/SettingPageVM.cs +++ b/UI/ViewModels/SettingPageVM.cs @@ -8,6 +8,7 @@ using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; +using UI.Controls; using UI.Models; namespace UI.ViewModels @@ -16,15 +17,22 @@ namespace UI.ViewModels { private ConfigModel config; private readonly IAppConfig appConfig; + public Command OpenURL { get; set; } public SettingPageVM(IAppConfig appConfig) { this.appConfig = appConfig; + OpenURL = new Command(new Action(OnOpenURL)); Init(); } + private void OnOpenURL(object obj) + { + Process.Start(new ProcessStartInfo(obj.ToString())); + } + private void Init() { config = appConfig.GetConfig(); diff --git a/UI/Views/SettingPage.xaml b/UI/Views/SettingPage.xaml index 1bfd1f3809dd70bcf0587a7611a7fe89a150573a..2c37006ed0fc3860cb18bd02772c7b922668494d 100644 --- a/UI/Views/SettingPage.xaml +++ b/UI/Views/SettingPage.xaml @@ -13,6 +13,7 @@ + @@ -48,7 +49,12 @@ - + + https://github.com/Planshit/Tai + + + https://github.com/Planshit/Tai/discussions +