diff --git a/src/Polymerium.App/ViewModels/MainViewModel.cs b/src/Polymerium.App/ViewModels/MainViewModel.cs index 5889c342..ec670edd 100644 --- a/src/Polymerium.App/ViewModels/MainViewModel.cs +++ b/src/Polymerium.App/ViewModels/MainViewModel.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Collections.Specialized; +using System.Diagnostics; using System.Linq; using System.Windows.Input; using CommunityToolkit.Mvvm.ComponentModel; @@ -256,8 +257,17 @@ public void GotoInstanceView(string id) public void GotoSearchView(string query) { - _navigationService.Navigate( - new SearchCenterNavigationArguments(query, true) - ); + switch (query.ToLower().Trim()) + { + case "github": + Process.Start(new ProcessStartInfo("https://github.com/d3ara1n/Polymerium") + { + UseShellExecute = true + }); + break; + default: + _navigationService.Navigate(new SearchCenterNavigationArguments(query, true)); + break; + } } } diff --git a/src/Polymerium.App/Views/InstanceView.xaml b/src/Polymerium.App/Views/InstanceView.xaml index d970b997..dec3b846 100644 --- a/src/Polymerium.App/Views/InstanceView.xaml +++ b/src/Polymerium.App/Views/InstanceView.xaml @@ -130,7 +130,7 @@ - + @@ -145,7 +145,8 @@ - -