diff --git a/src/HexManiac.WPF/Windows/MainWindow.xaml b/src/HexManiac.WPF/Windows/MainWindow.xaml index 2585325f..0b0d04ab 100644 --- a/src/HexManiac.WPF/Windows/MainWindow.xaml +++ b/src/HexManiac.WPF/Windows/MainWindow.xaml @@ -269,10 +269,24 @@ - - - - + + + + + + + + + + + + + + + + + + diff --git a/src/HexManiac.WPF/Windows/MainWindow.xaml.cs b/src/HexManiac.WPF/Windows/MainWindow.xaml.cs index de9c04f2..e5d58330 100644 --- a/src/HexManiac.WPF/Windows/MainWindow.xaml.cs +++ b/src/HexManiac.WPF/Windows/MainWindow.xaml.cs @@ -404,10 +404,11 @@ namespace HavenSoft.HexManiac.WPF.Windows { } private void UpdateClick(object sender, EventArgs e) => NativeProcess.Start(App.ReleaseUrl); - private void WikiClick(object sender, EventArgs e) => NativeProcess.Start("https://github.com/haven1433/HexManiacAdvance/wiki"); - private void TutorialsClick(object sender, RoutedEventArgs e) => NativeProcess.Start("https://github.com/haven1433/HexManiacAdvance/wiki/Tutorials"); - private void ReportIssueClick(object sender, EventArgs e) => NativeProcess.Start("https://github.com/haven1433/HexManiacAdvance/issues"); - private void DiscordClick(object sender, EventArgs e) => NativeProcess.Start("https://discord.gg/x9eQuBg"); + private void WebLink(object sender, EventArgs e) { + var element = (MenuItem)sender; + var link = element.CommandParameter.ToString(); + NativeProcess.Start(link); + } private void AboutClick(object sender, EventArgs e) => new AboutWindow(ViewModel.Singletons.MetadataInfo).ShowDialog(); private void EditBoxVisibilityChanged(object sender, DependencyPropertyChangedEventArgs e) {