File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,10 @@ private async Task PingSite() {
110110 WebsiteUp = await SendHeadRequest ( "https://nullinside.com" ) ;
111111 ApiUp = await SendHeadRequest ( "https://nullinside.com/api/v1/featureToggle" ) ;
112112 NullUp = await SendHeadRequest ( "https://nullinside.com/null/v1/database/migration" ) ;
113+ if ( ( ! WebsiteUp || ! ApiUp || ! NullUp ) && IsMinimized ) {
114+ WindowState = WindowState . Normal ;
115+ }
116+
113117 await Task . Delay ( TimeSpan . FromSeconds ( 10 ) ) ;
114118 }
115119 }
Original file line number Diff line number Diff line change 1111 CanResize =" False"
1212 WindowState =" {Binding WindowState, Mode=TwoWay}"
1313 ShowInTaskbar =" {Binding !IsMinimized, Mode=TwoWay}"
14+ WindowStartupLocation =" CenterScreen"
1415 x : Class =" SiteMonitor.Views.MainWindow"
1516 x : DataType =" viewModels:MainWindowViewModel"
1617 Icon =" /Assets/logo.ico"
You can’t perform that action at this time.
0 commit comments