Fixed UID not being copied, Removed UIRefreshcall on BroadcastUI and replaced with internal calls while loading or selecting.
This commit is contained in:
@@ -49,8 +49,6 @@ namespace LightlessSync.UI
|
|||||||
MinimumSize = new(600, 465),
|
MinimumSize = new(600, 465),
|
||||||
MaximumSize = new(750, 525)
|
MaximumSize = new(750, 525)
|
||||||
};
|
};
|
||||||
|
|
||||||
mediator.Subscribe<RefreshUiMessage>(this, async _ => await RefreshSyncshells().ConfigureAwait(false));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RebuildSyncshellDropdownOptions()
|
private void RebuildSyncshellDropdownOptions()
|
||||||
@@ -121,7 +119,7 @@ namespace LightlessSync.UI
|
|||||||
public override void OnOpen()
|
public override void OnOpen()
|
||||||
{
|
{
|
||||||
_userUid = _apiController.UID;
|
_userUid = _apiController.UID;
|
||||||
_ = RefreshSyncshellsInternal();
|
_ = RefreshSyncshells();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void DrawInternal()
|
protected override void DrawInternal()
|
||||||
@@ -268,6 +266,7 @@ namespace LightlessSync.UI
|
|||||||
if (_allSyncshells == null)
|
if (_allSyncshells == null)
|
||||||
{
|
{
|
||||||
ImGui.Text("Loading Syncshells...");
|
ImGui.Text("Loading Syncshells...");
|
||||||
|
_ = RefreshSyncshells();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,6 +318,7 @@ namespace LightlessSync.UI
|
|||||||
{
|
{
|
||||||
_configService.Current.SelectedFinderSyncshell = gid;
|
_configService.Current.SelectedFinderSyncshell = gid;
|
||||||
_configService.Save();
|
_configService.Save();
|
||||||
|
_ = RefreshSyncshells();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!available && ImGui.IsItemHovered())
|
if (!available && ImGui.IsItemHovered())
|
||||||
|
|||||||
@@ -671,7 +671,7 @@ public class CompactUi : WindowMediatorSubscriberBase
|
|||||||
UiSharedService.AttachToolTip("Click to copy");
|
UiSharedService.AttachToolTip("Click to copy");
|
||||||
if (uidFooterClicked)
|
if (uidFooterClicked)
|
||||||
{
|
{
|
||||||
_lightlessMediator.Publish(new UiToggleMessage(typeof(DataAnalysisUi)));
|
ImGui.SetClipboardText(_apiController.UID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user