Fixed UID not being copied, Removed UIRefreshcall on BroadcastUI and replaced with internal calls while loading or selecting.

This commit is contained in:
CakeAndBanana
2025-10-05 12:57:10 +02:00
parent e75dd86fdb
commit 4ca3b6da48
2 changed files with 4 additions and 4 deletions

View File

@@ -49,8 +49,6 @@ namespace LightlessSync.UI
MinimumSize = new(600, 465),
MaximumSize = new(750, 525)
};
mediator.Subscribe<RefreshUiMessage>(this, async _ => await RefreshSyncshells().ConfigureAwait(false));
}
private void RebuildSyncshellDropdownOptions()
@@ -121,7 +119,7 @@ namespace LightlessSync.UI
public override void OnOpen()
{
_userUid = _apiController.UID;
_ = RefreshSyncshellsInternal();
_ = RefreshSyncshells();
}
protected override void DrawInternal()
@@ -268,6 +266,7 @@ namespace LightlessSync.UI
if (_allSyncshells == null)
{
ImGui.Text("Loading Syncshells...");
_ = RefreshSyncshells();
return;
}
@@ -319,6 +318,7 @@ namespace LightlessSync.UI
{
_configService.Current.SelectedFinderSyncshell = gid;
_configService.Save();
_ = RefreshSyncshells();
}
if (!available && ImGui.IsItemHovered())