File tree Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Expand file tree Collapse file tree 2 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 715715 <MenuItem x : Name =" menuItemCopyEditorPath" Header =" Copy Editor Path" Click =" MenuItemCopyPath_Click" />
716716 <MenuItem x : Name =" menuItemShowUnityInExplorer" Header =" Show in Explorer" Click =" MenuItemShowProjectInExplorer_Click" />
717717 <MenuItem x : Name =" menuItemSetPreferredUnityVersion" Header =" Set as Preferred Version" Click =" MenuItemSetPreferredUnityVersion_Click" />
718+ <MenuItem x : Name =" menuCheckUnityUpdates" Header =" Check Updates" Click =" BtnUpdateUnity_Click" />
718719 <!-- <MenuItem x:Name="menuItemEditPackages" Header="Edit Packages" Click="MenuItemEditPackages_Click"/>-->
719720 <Separator ></Separator >
720- <MenuItem x : Name =" menuItemDownloadAndroidModule" Header =" Download Android module" Click =" MenuItemDownloadAndroidModule_Click" />
721- <MenuItem x : Name =" menuItemDownloadIOSModule" Header =" Download IOS module" Click =" MenuItemDownloadIOSModule_Click" />
722- <MenuItem x : Name =" menuItemDownloadWebGLModule" Header =" Download WebGL module" Click =" MenuItemDownloadWebGLModule_Click" />
723- <MenuItem x : Name =" menuItemDownloadLinuxModule" Header =" Download Linux modules" Click =" MenuItemDownloadLinuxModule_Click" />
721+ <MenuItem Header =" Download" >
722+ <MenuItem x : Name =" menuItemDownloadAndroidModule" Header =" Download Android module" Click =" MenuItemDownloadAndroidModule_Click" />
723+ <MenuItem x : Name =" menuItemDownloadIOSModule" Header =" Download IOS module" Click =" MenuItemDownloadIOSModule_Click" />
724+ <MenuItem x : Name =" menuItemDownloadWebGLModule" Header =" Download WebGL module" Click =" MenuItemDownloadWebGLModule_Click" />
725+ <MenuItem x : Name =" menuItemDownloadLinuxModule" Header =" Download Linux modules" Click =" MenuItemDownloadLinuxModule_Click" />
726+ </MenuItem >
724727 </ContextMenu >
725728 </DataGrid .ContextMenu>
726729
Original file line number Diff line number Diff line change @@ -573,22 +573,15 @@ async void GoLookForUpdatesForThisUnity()
573573
574574 var unity = GetSelectedUnity ( ) ;
575575 if ( unity == null ) return ;
576- // NOTE for now, just select the same version.. then user can see what has been released after this
576+
577+
577578 // NOTE if updates are not loaded, should wait for that
578579 if ( dataGridUpdates . ItemsSource != null )
579580 {
580581 tabControl . SelectedIndex = 2 ;
581- // find matching version
582- for ( int i = 0 ; i < dataGridUpdates . Items . Count ; i ++ )
583- {
584- Updates row = ( Updates ) dataGridUpdates . Items [ i ] ;
585- if ( row . Version == unity . Version )
586- {
587- dataGridUpdates . SelectedIndex = i ;
588- dataGridUpdates . ScrollIntoView ( row ) ;
589- break ;
590- }
591- }
582+
583+ // NOTE for now, just set filter to current version, minus patch version "2021.1.7f1" > "2021.1"
584+ txtSearchBoxUpdates . Text = unity . Version . Substring ( 0 , unity . Version . LastIndexOf ( '.' ) ) ;
592585 }
593586 }
594587
You can’t perform that action at this time.
0 commit comments