[PRIORITY NEGATIVE ONE/STABLE HOTFIX] ADMIN NOTES CANNOT BE ACCESSED (#40863)
Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Fix logger obsolete warnings (#40553)"
This commit is contained in:
committed by
GitHub
parent
9877b77fff
commit
e917c8e067
@@ -33,9 +33,7 @@ public sealed class ReplayMainScreen : State
|
||||
[Dependency] private readonly IClientRobustSerializer _serializer = default!;
|
||||
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
|
||||
[Dependency] private readonly ContentReplayPlaybackManager _replayMan = default!;
|
||||
[Dependency] private readonly ILogManager _logManager = default!;
|
||||
|
||||
private ISawmill _sawmill = default!;
|
||||
private ReplayMainMenuControl _mainMenuControl = default!;
|
||||
private SelectReplayWindow? _selectWindow;
|
||||
private ResPath _directory;
|
||||
@@ -44,8 +42,6 @@ public sealed class ReplayMainScreen : State
|
||||
|
||||
protected override void Startup()
|
||||
{
|
||||
_sawmill = _logManager.GetSawmill("replay.screen");
|
||||
|
||||
_mainMenuControl = new(_resourceCache);
|
||||
_userInterfaceManager.StateRoot.AddChild(_mainMenuControl);
|
||||
|
||||
@@ -267,7 +263,7 @@ public sealed class ReplayMainScreen : State
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_sawmill.Error($"Failed to load replay info. Exception: {ex}");
|
||||
Logger.Error($"Failed to load replay info. Exception: {ex}");
|
||||
SelectReplay(null);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user