mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 21:47:21 +01:00
do not open notes popup on connection when enabled
This commit is contained in:
parent
6b4359c0c2
commit
e00804b2ff
3 changed files with 5 additions and 4 deletions
|
|
@ -108,11 +108,12 @@ public class PairManager : IDisposable
|
||||||
RecreateLazy();
|
RecreateLazy();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddUserPair(UserPairDto dto)
|
public void AddUserPair(UserPairDto dto, bool addToLastAddedUser = true)
|
||||||
{
|
{
|
||||||
if (!_allClientPairs.ContainsKey(dto.User)) _allClientPairs[dto.User] = _pairFactory.Create();
|
if (!_allClientPairs.ContainsKey(dto.User)) _allClientPairs[dto.User] = _pairFactory.Create();
|
||||||
_allClientPairs[dto.User].UserPair = dto;
|
_allClientPairs[dto.User].UserPair = dto;
|
||||||
LastAddedUser = _allClientPairs[dto.User];
|
if (addToLastAddedUser)
|
||||||
|
LastAddedUser = _allClientPairs[dto.User];
|
||||||
_allClientPairs[dto.User].ApplyLastReceivedData();
|
_allClientPairs[dto.User].ApplyLastReceivedData();
|
||||||
RecreateLazy();
|
RecreateLazy();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Authors></Authors>
|
<Authors></Authors>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
<Version>0.7.8</Version>
|
<Version>0.7.9</Version>
|
||||||
<Description></Description>
|
<Description></Description>
|
||||||
<Copyright></Copyright>
|
<Copyright></Copyright>
|
||||||
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/Penumbra-Sync/client</PackageProjectUrl>
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ public partial class ApiController : IDisposable, IMareHubClient
|
||||||
foreach (var userPair in await UserGetPairedClients().ConfigureAwait(false))
|
foreach (var userPair in await UserGetPairedClients().ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
Logger.Debug($"Pair: {userPair}");
|
Logger.Debug($"Pair: {userPair}");
|
||||||
_pairManager.AddUserPair(userPair);
|
_pairManager.AddUserPair(userPair, addToLastAddedUser: false);
|
||||||
}
|
}
|
||||||
foreach (var entry in await GroupsGetAll().ConfigureAwait(false))
|
foreach (var entry in await GroupsGetAll().ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue