Skip to content

Commit

Permalink
修复 Exception has been thrown by the target of an invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Harlan-H committed May 30, 2024
1 parent 7bd7ef8 commit 8eebae5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion M3u8Downloader_H/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected override void OnUnhandledException(object sender, DispatcherUnhandledE
{
base.OnUnhandledException(sender, e);

MessageBox.Show(e.Exception.Message, "错误详情", MessageBoxButton.OK, MessageBoxImage.Error);
MessageBox.Show(e.Exception.ToString(), "错误详情", MessageBoxButton.OK, MessageBoxImage.Error);
}
#endif

Expand Down
7 changes: 7 additions & 0 deletions M3u8Downloader_H/M3u8Downloader_H.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,17 @@
</ItemGroup>

<ItemGroup>
<None Update="Plugins\请勿删除此目录.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Sounds\error.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="Sounds\success.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<Folder Include="Plugins\" />
</ItemGroup></Project>
Empty file.
11 changes: 2 additions & 9 deletions M3u8Downloader_H/Services/PluginService.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
using System;
using System.Collections.Generic;
using M3u8Downloader_H.Plugin.PluginClients;

#if !DEGUG
using System.IO;
#endif


namespace M3u8Downloader_H.Services
{
public class PluginService
{
private readonly string _pluginDirPath =
#if DEBUG
"e:/desktop/Plugins/";
#else
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Plugins");
#endif
private readonly string _pluginDirPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Plugins");
private readonly PluginClient pluginClient;
public PluginService()
{
Expand Down

0 comments on commit 8eebae5

Please sign in to comment.