mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix showing enumerations in photo details page.
This commit is contained in:
@@ -38,4 +38,10 @@ public sealed partial class PhotoDetailPage : Page
|
||||
if(DataContext is PhotoDetailViewModel viewModel && _pendingPhotoId.HasValue)
|
||||
_ = viewModel.LoadPhotoCommand.ExecuteAsync(_pendingPhotoId.Value);
|
||||
}
|
||||
|
||||
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
|
||||
{
|
||||
base.OnNavigatingFrom(e);
|
||||
_pendingPhotoId = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user