11// // Copyright (c) Microsoft Corporation.
22// // Licensed under the MIT License.
33
4- using EventLogExpert . UI . Interfaces ;
54using EventLogExpert . UI . Services ;
65using EventLogExpert . UI . Store . FilterPane ;
76using Microsoft . AspNetCore . Components ;
@@ -12,25 +11,14 @@ namespace EventLogExpert.Shared;
1211
1312public sealed partial class MainLayout
1413{
15- [ Inject ] private IAppTitleService AppTitleService { get ; init ; } = null ! ;
16-
17- [ Inject ] private ICurrentVersionProvider CurrentVersionProvider { get ; init ; } = null ! ;
18-
1914 [ Inject ] private IDispatcher Dispatcher { get ; init ; } = null ! ;
2015
21- [ Inject ] private ISettingsService Settings { get ; init ; } = null ! ;
22-
23- [ Inject ] private IUpdateService UpdateService { get ; init ; } = null ! ;
16+ [ Inject ] private IAppTitleService AppTitleService { get ; init ; } = null ! ;
2417
2518 protected override async Task OnAfterRenderAsync ( bool firstRender )
2619 {
2720 if ( firstRender )
2821 {
29- if ( CurrentVersionProvider . IsSupportedOS ( DeviceInfo . Version ) )
30- {
31- await UpdateService . CheckForUpdates ( Settings . IsPreReleaseEnabled , false ) ;
32- }
33-
3422 AppTitleService . SetLogName ( null ) ;
3523 }
3624
@@ -42,7 +30,7 @@ private void HandleKeyUp(KeyboardEventArgs args)
4230 // https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
4331 switch ( args )
4432 {
45- case { CtrlKey : true , Code : "KeyH" } :
33+ case { CtrlKey : true , Code : "KeyH" } :
4634 Dispatcher . Dispatch ( new FilterPaneAction . ToggleIsEnabled ( ) ) ;
4735 break ;
4836 }
0 commit comments