| 307 | END_EVENT_TABLE() |
| 308 | |
| 309 | void FrameMain::OnCloseWindow(wxCloseEvent &event) { |
| 310 | wxEventBlocker blocker(this, wxEVT_CLOSE_WINDOW); |
| 311 | |
| 312 | context->videoController->Stop(); |
| 313 | context->audioController->Stop(); |
| 314 | |
| 315 | // Ask user if he wants to save first |
| 316 | if (context->subsController->TryToClose(event.CanVeto()) == wxCANCEL) { |
| 317 | event.Veto(); |
| 318 | return; |
| 319 | } |
| 320 | |
| 321 | context->dialog.reset(); |
| 322 | |
| 323 | // Store maximization state |
| 324 | OPT_SET("App/Maximized")->SetBool(IsMaximized()); |
| 325 | |
| 326 | Destroy(); |
| 327 | } |
| 328 | |
| 329 | void FrameMain::OnStatusClear(wxTimerEvent &) { |
| 330 | SetStatusText("",1); |
nothing calls this directly
no test coverage detected