mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-09-25 00:15:22 +00:00
add support for images in clipboards on macos
This commit is contained in:
@@ -588,8 +588,12 @@ namespace ElectronNET.API
|
||||
public Task<string> GetNameAsync() => BridgeConnector.OnResult<string>("appGetName", "appGetNameCompleted");
|
||||
|
||||
|
||||
private App()
|
||||
private App()
|
||||
{
|
||||
if (OperatingSystem.IsMacOS() || OperatingSystem.IsLinux())
|
||||
{
|
||||
AppContext.SetSwitch("System.Drawing.EnableUnixSupport", true);
|
||||
}
|
||||
CommandLine = CommandLine.Instance;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user