mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Fixed the following compiler errors and warning.
* QuickTaskInfoEditForm.cs(57, 124): [CS8107] Feature 'enum generic type constraints' is not available in C# 7.0. Please use language version 7.3 or greater. * VideoConverterForm.cs(177, 25): [CS0121] The call is ambiguous between the following methods or properties: 'Task.Run<TResult>(Func<TResult>)' and 'Task.Run(Func<Task>)' * HashCheck.cs(65, 55): [CS0168] The variable 'e' is declared but never used
This commit is contained in:
parent
be385c28a1
commit
46c8c4b778
3 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,7 @@ public async Task<string> Start(string filePath, HashType hashType)
|
|||
{
|
||||
return HashCheckThread(filePath, hashType, progress, cts.Token);
|
||||
}
|
||||
catch (OperationCanceledException e)
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ private bool StartEncoding()
|
|||
|
||||
private Task<bool> StartEncodingAsync()
|
||||
{
|
||||
return Task.Run(StartEncoding);
|
||||
return Task.Run(() => StartEncoding());
|
||||
}
|
||||
|
||||
private void Manager_EncodeProgressChanged(float percentage)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
|
|
Loading…
Reference in a new issue