1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Move load() before LoadComplete()

This commit is contained in:
Christine Chen 2021-04-26 22:51:03 -04:00
parent a2723f3f57
commit e0f54f5842

View File

@ -23,6 +23,12 @@ namespace osu.Desktop.Security
private bool elevated;
[BackgroundDependencyLoader]
private void load()
{
elevated = isElevated();
}
protected override void LoadComplete()
{
base.LoadComplete();
@ -33,12 +39,6 @@ namespace osu.Desktop.Security
Notifications.Post(new ElevatedPrivilegesNotification());
}
[BackgroundDependencyLoader]
private void load()
{
elevated = isElevated();
}
private bool isElevated()
{
switch (RuntimeInfo.OS)