Skip to content

Commit

Permalink
Desktop编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeric-X committed May 5, 2024
1 parent b40bc24 commit 5e12850
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/SyncClipboard.Desktop/Views/SystemSettingPage.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ private void ExitApp(object? sender, Avalonia.Interactivity.RoutedEventArgs e)

private void CopyAppDataFolderPath(object? sender, Avalonia.Interactivity.RoutedEventArgs e)
{
var profile = new TextProfile(
Core.Commons.Env.AppDataDirectory,
App.Current.Services.GetRequiredService<IServiceProvider>()
);
var profile = new TextProfile(Core.Commons.Env.AppDataDirectory);
profile.SetLocalClipboard(true, CancellationToken.None);
}

Expand Down

0 comments on commit 5e12850

Please sign in to comment.