mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
chore: language level 10 for all projects
This commit is contained in:
parent
9156f85fff
commit
8c66acf950
4 changed files with 19 additions and 21 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<AssemblyName>Dalamud.CorePlugin</AssemblyName>
|
||||
<TargetFramework>net5.0-windows</TargetFramework>
|
||||
<Platforms>x64</Platforms>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
|
||||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<Platforms>x64;AnyCPU</Platforms>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="Feature">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<TargetFramework>net5.0-windows</TargetFramework>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<Platforms>x64;AnyCPU</Platforms>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Label="Feature">
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ using System.Net;
|
|||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Dalamud.Game;
|
||||
using Dalamud.Plugin.Internal;
|
||||
using Dalamud.Plugin.Internal.Types;
|
||||
|
|
@ -80,21 +81,6 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
framework.Update += this.FrameworkOnUpdate;
|
||||
}
|
||||
|
||||
private void FrameworkOnUpdate(Framework framework)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!this.loadQueue.TryTake(out var loadAction, 0, this.downloadToken.Token))
|
||||
return;
|
||||
|
||||
loadAction.Invoke();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex, "An unhandled exception occurred in image loader framework dispatcher");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the default plugin icon.
|
||||
/// </summary>
|
||||
|
|
@ -231,6 +217,21 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
return false;
|
||||
}
|
||||
|
||||
private void FrameworkOnUpdate(Framework framework)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!this.loadQueue.TryTake(out var loadAction, 0, this.downloadToken.Token))
|
||||
return;
|
||||
|
||||
loadAction.Invoke();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Log.Error(ex, "An unhandled exception occurred in image loader framework dispatcher");
|
||||
}
|
||||
}
|
||||
|
||||
private async void DownloadTask()
|
||||
{
|
||||
while (!this.downloadToken.Token.IsCancellationRequested)
|
||||
|
|
@ -482,12 +483,9 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
var bytes = await data.Content.ReadAsByteArrayAsync();
|
||||
imageBytes[i] = bytes;
|
||||
|
||||
|
||||
|
||||
Log.Verbose($"Plugin image{i + 1} for {manifest.InternalName} downloaded");
|
||||
|
||||
didAny = true;
|
||||
|
||||
}
|
||||
|
||||
if (didAny)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue