mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add pages for sound synthesizers.
This commit is contained in:
@@ -195,6 +195,20 @@ public partial class MachineViewViewModel : ObservableObject
|
||||
return;
|
||||
}
|
||||
|
||||
// If we came from SoundSynthDetailViewModel, navigate back to sound synth details
|
||||
if(_navigationSource is SoundSynthDetailViewModel soundSynthDetailVm)
|
||||
{
|
||||
var navParam = new SoundSynthDetailNavigationParameter
|
||||
{
|
||||
SoundSynthId = soundSynthDetailVm.SoundSynthId,
|
||||
NavigationSource = this
|
||||
};
|
||||
|
||||
await _navigator.NavigateViewModelAsync<SoundSynthDetailViewModel>(this, data: navParam);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Otherwise, try to go back in the navigation stack
|
||||
await _navigator.GoBack(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user