| 1842 | } |
| 1843 | |
| 1844 | void AudacityApp::OnIdle( wxIdleEvent &evt ) |
| 1845 | { |
| 1846 | evt.Skip(); |
| 1847 | try { |
| 1848 | HandleAppIdle(); |
| 1849 | |
| 1850 | if ( Journal::Dispatch() ) |
| 1851 | evt.RequestMore(); |
| 1852 | } |
| 1853 | catch( ... ) { |
| 1854 | // Hmm, wxWidgets doesn't guard calls to the idle handler as for other |
| 1855 | // events. So replicate some of the try-catch logic here. |
| 1856 | OnExceptionInMainLoop(); |
| 1857 | // Fall through and return, allowing delayed handler action of |
| 1858 | // AudacityException to clean up |
| 1859 | } |
| 1860 | } |
| 1861 | |
| 1862 | void AudacityApp::InitCommandHandler() |
| 1863 | { |