1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 17:33:02 +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; private bool elevated;
[BackgroundDependencyLoader]
private void load()
{
elevated = isElevated();
}
protected override void LoadComplete() protected override void LoadComplete()
{ {
base.LoadComplete(); base.LoadComplete();
@ -33,12 +39,6 @@ namespace osu.Desktop.Security
Notifications.Post(new ElevatedPrivilegesNotification()); Notifications.Post(new ElevatedPrivilegesNotification());
} }
[BackgroundDependencyLoader]
private void load()
{
elevated = isElevated();
}
private bool isElevated() private bool isElevated()
{ {
switch (RuntimeInfo.OS) switch (RuntimeInfo.OS)