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() {
110
110
WebsiteUp = await SendHeadRequest ( "https://nullinside.com" ) ;
111
111
ApiUp = await SendHeadRequest ( "https://nullinside.com/api/v1/featureToggle" ) ;
112
112
NullUp = await SendHeadRequest ( "https://nullinside.com/null/v1/database/migration" ) ;
113
+ if ( ( ! WebsiteUp || ! ApiUp || ! NullUp ) && IsMinimized ) {
114
+ WindowState = WindowState . Normal ;
115
+ }
116
+
113
117
await Task . Delay ( TimeSpan . FromSeconds ( 10 ) ) ;
114
118
}
115
119
}
Original file line number Diff line number Diff line change 11
11
CanResize =" False"
12
12
WindowState =" {Binding WindowState, Mode=TwoWay}"
13
13
ShowInTaskbar =" {Binding !IsMinimized, Mode=TwoWay}"
14
+ WindowStartupLocation =" CenterScreen"
14
15
x : Class =" SiteMonitor.Views.MainWindow"
15
16
x : DataType =" viewModels:MainWindowViewModel"
16
17
Icon =" /Assets/logo.ico"
You can’t perform that action at this time.
0 commit comments