mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 05:17:42 +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
|
|
@ -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