Skip to content

Commit 2f6675f

Browse files
committed
fix UI update bug
1 parent e22f816 commit 2f6675f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UniGetUI/Pages/SettingsPages/ManagersPages/ManagersHomepage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ void loadStatusBadge()
8282
}
8383
}
8484

85-
loadStatusBadge();
8685
var toggle = new ToggleSwitch()
8786
{
8887
Height = 22,
@@ -91,6 +90,7 @@ void loadStatusBadge()
9190
OffContent = "",
9291
Margin = new Thickness(-10, 0, 0, 0),
9392
};
93+
toggle.Loaded += (_, _) => loadStatusBadge();
9494
toggle.Toggled += async (_, _) =>
9595
{
9696
if (_isLoadingToggles) return;

0 commit comments

Comments
 (0)