mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Move load() before LoadComplete()
This commit is contained in:
parent
a2723f3f57
commit
e0f54f5842
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user