@@ -43,7 +43,7 @@ namespace winrt::CelestiaWinUI::implementation
4343 {
4444 availableObjects = single_threaded_observable_vector<SearchObjectEntry>({ SearchObjectEntry (CelestiaAppCore::LocalizedString (L" Earth" , L" celestia-data" ), L" Sol/Earth" ), SearchObjectEntry (CelestiaAppCore::LocalizedString (L" Jupiter" , L" celestia-data" ), L" Sol/Jupiter" )});
4545 eclipses = single_threaded_observable_vector<CelestiaWinUI::EclipseResult>();
46- startTime = clock::now ();
46+ startTime = clock::now () - std::chrono::hours ( 24 * 365 ) ;
4747 endTime = clock::now ();
4848 }
4949
@@ -55,7 +55,7 @@ namespace winrt::CelestiaWinUI::implementation
5555 ComputeButton ().Content (box_value (LocalizationHelper::Localize (L" Compute" , L" Compute for eclipses" )));
5656 StartTimeHint ().Text (LocalizationHelper::Localize (L" Start time:" , L" In eclipse finder, range of time to find eclipse in" ));
5757 EndTimeHint ().Text (LocalizationHelper::Localize (L" End time:" , L" In eclipse finder, range of time to find eclipse in" ));
58- ObjectHint ().Text ( LocalizationHelper::Localize (L" Object: " , L" In Go to, Windows, In eclipse finder, object to find eclipse with" ));
58+ ObjectChooser ().Header ( box_value ( LocalizationHelper::Localize (L" Object" , L" In eclipse finder, object to find eclipse with, or in go to " ) ));
5959 SolarEclipseButton ().Content (box_value (LocalizationHelper::Localize (L" Solar" , L" Solar eclipses." )));
6060 LunarEclipseButton ().Content (box_value (LocalizationHelper::Localize (L" Lunar" , L" Lunar eclipses." )));
6161 EmptyHintText ().Text (LocalizationHelper::Localize (L" Find eclipses for an object in a time range" , L" " ));
@@ -193,12 +193,12 @@ namespace winrt::CelestiaWinUI::implementation
193193 if (selectedEclipse == nullptr )
194194 return ;
195195
196- auto eclipse = selectedEclipse.as <CelestiaEclipse >();
196+ auto eclipse = selectedEclipse.as <CelestiaWinUI::EclipseResult >();
197197 renderer.EnqueueTask ([weak_this{ get_weak () }, eclipse]()
198198 {
199199 auto strong_this{ weak_this.get () };
200200 if (strong_this == nullptr ) return ;
201- strong_this->appCore .Simulation ().GoToEclipse (eclipse);
201+ strong_this->appCore .Simulation ().GoToEclipse (eclipse. Eclipse () );
202202 });
203203 }
204204
0 commit comments