File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1313 ShowInTaskbar =" {Binding !IsMinimized, Mode=TwoWay}"
1414 Topmost =" True"
1515 WindowStartupLocation =" CenterScreen"
16+ Loaded =" HideWindowOnLoaded"
1617 x : Class =" SiteMonitor.Views.MainWindow"
1718 x : DataType =" viewModels:MainWindowViewModel"
1819 Icon =" /Assets/logo.ico"
Original file line number Diff line number Diff line change 33using System . Threading . Tasks ;
44
55using Avalonia . Controls ;
6+ using Avalonia . Interactivity ;
67
78using Nullinside . Api . Common . Desktop ;
89#if ! DEBUG
@@ -92,4 +93,9 @@ protected override void OnInitialized() {
9293#endif
9394 } ) ;
9495 }
96+
97+ private void HideWindowOnLoaded ( object ? sender , RoutedEventArgs e ) {
98+ var window = ( Window ) sender ! ;
99+ window . WindowState = WindowState . Minimized ;
100+ }
95101}
You can’t perform that action at this time.
0 commit comments