| 246 | } |
| 247 | |
| 248 | void FrameMain::UpdateTitle() { |
| 249 | wxString newTitle; |
| 250 | if (context->subsController->IsModified()) newTitle << "* "; |
| 251 | newTitle << context->subsController->Filename().filename().wstring(); |
| 252 | |
| 253 | #ifndef __WXMAC__ |
| 254 | newTitle << " - Aegisub " << GetAegisubLongVersionString(); |
| 255 | #endif |
| 256 | |
| 257 | #if defined(__WXMAC__) |
| 258 | // On Mac, set the mark in the close button |
| 259 | OSXSetModified(context->subsController->IsModified()); |
| 260 | #endif |
| 261 | |
| 262 | if (GetTitle() != newTitle) SetTitle(newTitle); |
| 263 | } |
| 264 | |
| 265 | void FrameMain::OnVideoOpen(AsyncVideoProvider *provider) { |
| 266 | if (!provider) { |
nothing calls this directly
no test coverage detected