Skip to content

Commit

Permalink
add url jump
Browse files Browse the repository at this point in the history
  • Loading branch information
huiyadanli committed Oct 22, 2023
1 parent 4f5619c commit 5dd048f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BetterGenshinImpact/View/Pages/TaskSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
TextWrapping="Wrap">
全自动打牌 -
<Hyperlink
NavigateUri="http://www.baidu.com"
Command="{Binding GoToAutoGeniusInvokationUrlCommand}"
Foreground="{ui:ThemeResource TextFillColorSecondaryBrush}">
点击查看使用教程
</Hyperlink>
Expand Down Expand Up @@ -166,7 +166,7 @@
Grid.Column="0"
Foreground="{ui:ThemeResource TextFillColorTertiaryBrush}"
TextWrapping="Wrap"
Text="如果经常出现操作速度过快,操作动画未播放完毕的情况可以添加延时" />
Text="如果频繁出现操作速度过快,操作动画未播放完毕的情况可以添加延时" />
<ui:NumberBox
Grid.Row="0"
Grid.RowSpan="2"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Documents;
using BetterGenshinImpact.Core.Config;
using BetterGenshinImpact.Service.Interface;
Expand Down Expand Up @@ -111,4 +112,10 @@ public void OnSwitchAutoGeniusInvokation()
MessageBox.Show(ex.Message);
}
}

[RelayCommand]
public void OnGoToAutoGeniusInvokationUrl()
{
Process.Start(new ProcessStartInfo("https://github.com/babalae/better-genshin-impact/wiki#%E8%87%AA%E5%8A%A8%E4%B8%83%E5%9C%A3%E5%8F%AC%E5%94%A4") { UseShellExecute = true });
}
}

0 comments on commit 5dd048f

Please sign in to comment.