@@ -152,15 +152,15 @@ void Start()
152
152
ApplyTheme ( txtCustomThemeFile . Text ) ;
153
153
154
154
// for autostart with minimized
155
- if ( Properties . Settings . Default . runAutomatically == true && Properties . Settings . Default . runAutomaticallyMinimized == true )
155
+ if ( Settings . Default . runAutomatically == true && Settings . Default . runAutomaticallyMinimized == true )
156
156
{
157
- // if application got started by the system, then hide, otherwise dont hide (user started it)
157
+ // if application was system started , then hide, otherwise dont hide (when user started it)
158
158
if ( Directory . GetCurrentDirectory ( ) . ToLower ( ) == @"c:\windows\system32" )
159
159
{
160
+ this . ShowInTaskbar = false ; // for some reason, otherwise it will show in taskbar only at start
160
161
notifyIcon . Visible = true ;
161
162
this . Hide ( ) ;
162
163
}
163
-
164
164
}
165
165
166
166
// TEST
@@ -749,11 +749,10 @@ async void GoLookForUpdatesForThisUnity()
749
749
var unity = GetSelectedUnity ( ) ;
750
750
if ( unity == null ) return ;
751
751
752
-
753
- // NOTE if updates are not loaded, should wait for that
754
752
if ( dataGridUpdates . ItemsSource != null )
755
753
{
756
754
tabControl . SelectedIndex = 2 ;
755
+ txtSearchBoxUpdates . Text = "" ; // need to clear old results first
757
756
758
757
// NOTE for now, just set filter to current version, minus patch version "2021.1.7f1" > "2021.1"
759
758
txtSearchBoxUpdates . Text = unity . Version . Substring ( 0 , unity . Version . LastIndexOf ( '.' ) ) ;
@@ -799,6 +798,7 @@ void NotifyIcon_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
799
798
{
800
799
this . Show ( ) ;
801
800
this . WindowState = WindowState . Normal ;
801
+ this . ShowInTaskbar = true ;
802
802
notifyIcon . Visible = false ;
803
803
// NOTE workaround for grid not focused when coming back from minimized window
804
804
Tools . SetFocusToGrid ( gridRecent , gridRecent . SelectedIndex ) ;
@@ -2314,11 +2314,9 @@ void RefreshBuildReports()
2314
2314
r . Percentage = line2 . Substring ( space1 + 2 , space2 - space1 - 1 ) ;
2315
2315
r . Path = line2 . Substring ( space2 + 2 , line2 . Length - space2 - 2 ) ;
2316
2316
r . Format = Path . GetExtension ( r . Path ) ;
2317
-
2318
2317
singleReport . Items . Add ( r ) ;
2319
2318
}
2320
2319
2321
-
2322
2320
if ( collectStats == true )
2323
2321
{
2324
2322
@@ -2351,9 +2349,10 @@ void RefreshBuildReports()
2351
2349
2352
2350
singleReport . Stats . Add ( r ) ;
2353
2351
}
2354
- }
2355
- }
2356
- }
2352
+
2353
+ } // while endofstream
2354
+ } // streamreader
2355
+ } // filestream
2357
2356
}
2358
2357
catch ( Exception e )
2359
2358
{
@@ -2780,8 +2779,8 @@ private void ChkRunAutomaticallyMinimized_Checked(object sender, RoutedEventArgs
2780
2779
if ( this . IsActive == false ) return ; // dont run code on window init
2781
2780
var isChecked = ( bool ) ( ( CheckBox ) sender ) . IsChecked ;
2782
2781
2783
- Properties . Settings . Default . runAutomaticallyMinimized = isChecked ;
2784
- Properties . Settings . Default . Save ( ) ;
2782
+ Settings . Default . runAutomaticallyMinimized = isChecked ;
2783
+ Settings . Default . Save ( ) ;
2785
2784
}
2786
2785
2787
2786
private void MenuItemEditPackages_Click ( object sender , RoutedEventArgs e )
0 commit comments