mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-05-02 10:38:27 +00:00
@@ -44,7 +44,7 @@ namespace DiscordChatExporter.Cli.Commands
|
|||||||
console.Output.WriteLine(" 6. Copy the first long sequence of numbers inside the URL");
|
console.Output.WriteLine(" 6. Copy the first long sequence of numbers inside the URL");
|
||||||
console.Output.WriteLine();
|
console.Output.WriteLine();
|
||||||
|
|
||||||
console.Output.WriteLine("If you still have unanswered questions, check out the wiki:");
|
console.Output.WriteLine("For more information, check out the wiki:");
|
||||||
console.Output.WriteLine("https://github.com/Tyrrrz/DiscordChatExporter/wiki");
|
console.Output.WriteLine("https://github.com/Tyrrrz/DiscordChatExporter/wiki");
|
||||||
|
|
||||||
return default;
|
return default;
|
||||||
|
|||||||
18
DiscordChatExporter.Gui/Internal/ProcessEx.cs
Normal file
18
DiscordChatExporter.Gui/Internal/ProcessEx.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace DiscordChatExporter.Gui.Internal
|
||||||
|
{
|
||||||
|
internal static class ProcessEx
|
||||||
|
{
|
||||||
|
public static void StartShellExecute(string path)
|
||||||
|
{
|
||||||
|
var startInfo = new ProcessStartInfo(path)
|
||||||
|
{
|
||||||
|
UseShellExecute = true
|
||||||
|
};
|
||||||
|
|
||||||
|
using (Process.Start(startInfo))
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -167,6 +167,10 @@
|
|||||||
<materialDesign:PackIcon Margin="1,0,0,-3" Kind="Account" />
|
<materialDesign:PackIcon Margin="1,0,0,-3" Kind="Account" />
|
||||||
</InlineUIContainer>
|
</InlineUIContainer>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
<TextBlock Margin="0,24,0,0" FontSize="14">
|
||||||
|
<Run Text="For more information, check out the" />
|
||||||
|
<Hyperlink NavigateUri="https://github.com/Tyrrrz/DiscordChatExporter/wiki" RequestNavigate="Hyperlink_OnRequestNavigate">wiki</Hyperlink><Run Text="." />
|
||||||
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<!-- For bot token -->
|
<!-- For bot token -->
|
||||||
@@ -192,6 +196,10 @@
|
|||||||
<materialDesign:PackIcon Margin="1,0,0,-1" Kind="Robot" />
|
<materialDesign:PackIcon Margin="1,0,0,-1" Kind="Robot" />
|
||||||
</InlineUIContainer>
|
</InlineUIContainer>
|
||||||
</TextBlock>
|
</TextBlock>
|
||||||
|
<TextBlock Margin="0,24,0,0" FontSize="14">
|
||||||
|
<Run Text="For more information, check out the" />
|
||||||
|
<Hyperlink NavigateUri="https://github.com/Tyrrrz/DiscordChatExporter/wiki" RequestNavigate="Hyperlink_OnRequestNavigate">wiki</Hyperlink><Run Text="." />
|
||||||
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
namespace DiscordChatExporter.Gui.Views
|
using System.Windows.Navigation;
|
||||||
|
using DiscordChatExporter.Gui.Internal;
|
||||||
|
|
||||||
|
namespace DiscordChatExporter.Gui.Views
|
||||||
{
|
{
|
||||||
public partial class RootView
|
public partial class RootView
|
||||||
{
|
{
|
||||||
@@ -6,5 +9,11 @@
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Hyperlink_OnRequestNavigate(object sender, RequestNavigateEventArgs e)
|
||||||
|
{
|
||||||
|
ProcessEx.StartShellExecute(e.Uri.AbsoluteUri);
|
||||||
|
e.Handled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user