migrate to strong api calls (#29)
* migrate to strong api calls * set last added user to null on changing notes popup setting
This commit is contained in:
@@ -201,7 +201,7 @@ public class CompactUi : Window, IDisposable
|
||||
{
|
||||
if (_apiController.PairedClients.All(w => !string.Equals(w.OtherUID, _pairToAdd, StringComparison.Ordinal)))
|
||||
{
|
||||
_ = _apiController.SendPairedClientAddition(_pairToAdd);
|
||||
_ = _apiController.UserAddPair(_pairToAdd);
|
||||
_pairToAdd = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -279,7 +279,7 @@ public class CompactUi : Window, IDisposable
|
||||
Logger.Debug(users.Count.ToString());
|
||||
foreach (var entry in users)
|
||||
{
|
||||
_ = _apiController.SendPairedClientPauseChange(entry.OtherUID, !entry.IsPaused);
|
||||
_ = _apiController.UserChangePairPauseStatus(entry.OtherUID, !entry.IsPaused);
|
||||
}
|
||||
|
||||
_timeout.Start();
|
||||
@@ -407,7 +407,7 @@ public class CompactUi : Window, IDisposable
|
||||
{
|
||||
if (UiShared.CtrlPressed())
|
||||
{
|
||||
_ = _apiController.SendPairedClientRemoval(entry.OtherUID);
|
||||
_ = _apiController.UserRemovePair(entry.OtherUID);
|
||||
}
|
||||
}
|
||||
UiShared.AttachToolTip("Hold CTRL and click to unpair permanently from " + entryUID);
|
||||
@@ -418,7 +418,7 @@ public class CompactUi : Window, IDisposable
|
||||
ImGui.SetCursorPosY(originalY);
|
||||
if (ImGuiComponents.IconButton(pauseIcon))
|
||||
{
|
||||
_ = _apiController.SendPairedClientPauseChange(entry.OtherUID, !entry.IsPaused);
|
||||
_ = _apiController.UserChangePairPauseStatus(entry.OtherUID, !entry.IsPaused);
|
||||
}
|
||||
UiShared.AttachToolTip(!entry.IsPaused
|
||||
? "Pause pairing with " + entryUID
|
||||
|
||||
Reference in New Issue
Block a user