mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-07 06:02:20 -04:00
Centralize handling of modal error display.
This commit is contained in:
parent
682a1706a3
commit
6a3cd4c144
4 changed files with 16 additions and 2 deletions
|
@ -71,7 +71,7 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
|
|||
|
||||
record_view.set_sampling_rate(sampling_rate / 8);
|
||||
record_view.on_error = [&nav](std::string message) {
|
||||
nav.push<ModalMessageView>(message);
|
||||
nav.display_error(message);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue