mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
add downloads UI, fix some bugs on disconnect
This commit is contained in:
parent
6ee159f716
commit
9b8145fddd
9 changed files with 216 additions and 50 deletions
|
|
@ -1,8 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Dalamud.Game;
|
||||
using Dalamud.Game.ClientState;
|
||||
|
|
@ -14,7 +12,6 @@ using MareSynchronos.FileCacheDB;
|
|||
using MareSynchronos.Models;
|
||||
using MareSynchronos.Utils;
|
||||
using MareSynchronos.WebAPI;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace MareSynchronos.Managers;
|
||||
|
||||
|
|
@ -63,6 +60,8 @@ public class CharacterCacheManager : IDisposable
|
|||
{
|
||||
RestoreCharacter(character);
|
||||
}
|
||||
|
||||
_onlineCachedPlayers.Clear();
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
|
|
@ -74,6 +73,7 @@ public class CharacterCacheManager : IDisposable
|
|||
_apiController.UnpairedFromOther += ApiControllerOnUnpairedFromOther;
|
||||
_framework.Update += FrameworkOnUpdate;
|
||||
}
|
||||
|
||||
public async Task UpdatePlayersFromService(Dictionary<string, int> playerJobIds)
|
||||
{
|
||||
await _apiController.GetCharacterData(playerJobIds);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ using MareSynchronos.Utils;
|
|||
|
||||
namespace MareSynchronos.Managers
|
||||
{
|
||||
internal class FileCacheManager : IDisposable
|
||||
public class FileCacheManager : IDisposable
|
||||
{
|
||||
private readonly FileCacheFactory _fileCacheFactory;
|
||||
private readonly IpcManager _ipcManager;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue